Mercurial > libavcodec.hg
changeset 7314:def12c3c7742 libavcodec
Do not forget marking disposed delayed pics as unused.
Fixes issue335
author | michael |
---|---|
date | Sat, 19 Jul 2008 03:33:42 +0000 |
parents | 094536cc2e18 |
children | c7db87e35cae |
files | h264.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Sat Jul 19 03:17:44 2008 +0000 +++ b/h264.c Sat Jul 19 03:33:42 2008 +0000 @@ -7866,6 +7866,8 @@ 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 @@ if(out){ *data_size = sizeof(AVFrame); - out->reference &= ~DELAYED_PIC_REF; h->outputed_poc = out->poc; } #endif