Browse Source

fix a crash on dropped frames

Originally committed as revision 4667 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Loren Merritt 20 years ago
parent
commit
cd19c677cb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h264.c

+ 1
- 1
libavcodec/h264.c View File

@@ -7672,7 +7672,7 @@ static int decode_frame(AVCodecContext *avctx,
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)))


Loading…
Cancel
Save