Skip to content

Commit

Permalink
[editor] Set flags even if we do not have a picture
Browse files Browse the repository at this point in the history
This fixes wrong frame type when playing mpeg4 videos with empty frames.
  • Loading branch information
eumagga0x2a committed Aug 8, 2019
1 parent 65752fd commit ecb2794
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions avidemux/common/ADM_editor/src/ADM_edRenderInternal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ bool ADM_Composer::decompressImage(ADMImage *out,ADMCompressedImage *in,uint32_t
printf("[decompressImage] NoPicture\n");
// No picture and no error from decoder means repeat the previous one
out->_noPicture=1;
// Copy flags as set by decoder
out->flags=tmpImage->flags;
return true;
}
aprintf("[::Decompress] in:%" PRIu32" out:%" PRIu32" flags:%x\n",in->demuxerPts,out->Pts,out->flags);
Expand Down

0 comments on commit ecb2794

Please sign in to comment.