Mercurial > libavcodec.hg
changeset 2923:7fa9106be552 libavcodec
fix a crash on dropped frames
author | lorenm |
---|---|
date | Thu, 27 Oct 2005 21:03:36 +0000 |
parents | d772011258ec |
children | d98f385b3933 |
files | h264.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Thu Oct 27 06:45:29 2005 +0000 +++ b/h264.c Thu Oct 27 21:03:36 2005 +0000 @@ -7672,7 +7672,7 @@ out_of_order = !cross_idr && prev && out->poc < prev->poc; if(prev && pics <= s->avctx->has_b_frames) out = prev; - else if((out_of_order && pics-1 == s->avctx->has_b_frames) + else if((out_of_order && pics-1 == s->avctx->has_b_frames && pics < 15) || (s->low_delay && ((!cross_idr && prev && out->poc > prev->poc + 2) || cur->pict_type == B_TYPE)))