diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-05-20 12:33:30 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-06-21 11:20:20 +0200 |
commit | 6efc4638584e1e14d1a6152186ba28f5d48a80c0 (patch) | |
tree | 60fcf640993d72e19a17bfb9127ecbfd3cf97837 | |
parent | 606fb6c032fa44d9fa1efd4971308c228f2ebfff (diff) | |
download | ffmpeg-6efc4638584e1e14d1a6152186ba28f5d48a80c0.tar.gz |
h264: always set redundant_pic_count during slice header parsing
It is always checked in the surrounding code, so this make sure we don't
see a value from an old slice.
-rw-r--r-- | libavcodec/h264_slice.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 53f745e5e0..dbff1f3f8b 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -1452,6 +1452,7 @@ static int h264_slice_header_parse(H264SliceContext *sl, const H2645NAL *nal, sl->delta_poc[1] = get_se_golomb(&sl->gb); } + sl->redundant_pic_count = 0; if (pps->redundant_pic_cnt_present) sl->redundant_pic_count = get_ue_golomb(&sl->gb); |