Mercurial > libavcodec.hg
comparison h264.c @ 12094:f7bedc1ce1bc libavcodec
Perform sliding window operation during frame gap handling.
This avoids some warnings about too many reference frames.
author | michael |
---|---|
date | Mon, 05 Jul 2010 14:36:03 +0000 |
parents | dd5efc28bca9 |
children | 58a960d6e34c |
comparison
equal
deleted
inserted
replaced
12093:05f91a88f986 | 12094:f7bedc1ce1bc |
---|---|
1906 if (ff_h264_frame_start(h) < 0) | 1906 if (ff_h264_frame_start(h) < 0) |
1907 return -1; | 1907 return -1; |
1908 h->prev_frame_num++; | 1908 h->prev_frame_num++; |
1909 h->prev_frame_num %= 1<<h->sps.log2_max_frame_num; | 1909 h->prev_frame_num %= 1<<h->sps.log2_max_frame_num; |
1910 s->current_picture_ptr->frame_num= h->prev_frame_num; | 1910 s->current_picture_ptr->frame_num= h->prev_frame_num; |
1911 ff_h264_execute_ref_pic_marking(h, NULL, 0); | 1911 ff_generate_sliding_window_mmcos(h); |
1912 ff_h264_execute_ref_pic_marking(h, h->mmco, h->mmco_index); | |
1912 } | 1913 } |
1913 | 1914 |
1914 /* See if we have a decoded first field looking for a pair... */ | 1915 /* See if we have a decoded first field looking for a pair... */ |
1915 if (s0->first_field) { | 1916 if (s0->first_field) { |
1916 assert(s0->current_picture_ptr); | 1917 assert(s0->current_picture_ptr); |