mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Do not forget marking disposed delayed pics as unused.
Fixes issue335 Originally committed as revision 14296 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f12c4bba79
commit
7c0efeccfa
@ -7866,6 +7866,8 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
s->avctx->has_b_frames++;
|
||||
}
|
||||
|
||||
if(out_of_order || pics > s->avctx->has_b_frames)
|
||||
out->reference &= ~DELAYED_PIC_REF;
|
||||
if(pics <= s->avctx->has_b_frames || out_of_order)
|
||||
out = NULL;
|
||||
|
||||
@ -7877,7 +7879,6 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
if(out){
|
||||
*data_size = sizeof(AVFrame);
|
||||
|
||||
out->reference &= ~DELAYED_PIC_REF;
|
||||
h->outputed_poc = out->poc;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user