Commit 960369c0 authored by michael's avatar michael

Dont forget marking disposed delayed pics as unused.

Fixes issue335


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14296 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a7c60958
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment