diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-07-05 14:36:03 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-07-05 14:36:03 +0000 |
commit | 3d5421201ba21d108adc0c76458300ea425114a9 (patch) | |
tree | d3f2f43784064ba0434abc54ee0f1f4a3468301e /libavcodec/h264.c | |
parent | 733f5990d0600589782bcfa5c9e22a9391c6c19e (diff) | |
download | ffmpeg-3d5421201ba21d108adc0c76458300ea425114a9.tar.gz |
Perform sliding window operation during frame gap handling.
This avoids some warnings about too many reference frames.
Originally committed as revision 24057 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index e7ffe45d0f..d1662fcb6b 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1908,7 +1908,8 @@ static int decode_slice_header(H264Context *h, H264Context *h0){ h->prev_frame_num++; h->prev_frame_num %= 1<<h->sps.log2_max_frame_num; s->current_picture_ptr->frame_num= h->prev_frame_num; - ff_h264_execute_ref_pic_marking(h, NULL, 0); + ff_generate_sliding_window_mmcos(h); + ff_h264_execute_ref_pic_marking(h, h->mmco, h->mmco_index); } /* See if we have a decoded first field looking for a pair... */ |