diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-27 06:21:07 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-27 06:26:03 +0400 |
commit | b5005def8a8f2dc2e7ac51ea85d50b8ed3d84673 (patch) | |
tree | c7b0280425ac21d9afe858e20999e35a260d4bff /libavcodec/h264.c | |
parent | c4c5351f0857c80a7882143378cfb3db474146e8 (diff) |
avcodec/h264: avoid using lost frames as references
Fixes Ticket3386
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index f9d10a2f79..eccd6db4af 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3788,6 +3788,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0) h->prev_frame_num++; h->prev_frame_num %= 1 << h->sps.log2_max_frame_num; h->cur_pic_ptr->frame_num = h->prev_frame_num; + h->cur_pic_ptr->invalid_gap = !h->sps.gaps_in_frame_num_allowed_flag; ff_thread_report_progress(&h->cur_pic_ptr->tf, INT_MAX, 0); ff_thread_report_progress(&h->cur_pic_ptr->tf, INT_MAX, 1); ret = ff_generate_sliding_window_mmcos(h, 1); |