git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
606fb6c
)
h264: always set redundant_pic_count during slice header parsing
author
Anton Khirnov
<anton@khirnov.net>
Fri, 20 May 2016 10:33:30 +0000
(12:33 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Tue, 21 Jun 2016 09:20:20 +0000
(11:20 +0200)
It is always checked in the surrounding code, so this make sure we don't
see a value from an old slice.
libavcodec/h264_slice.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264_slice.c
b/libavcodec/h264_slice.c
index
53f745e
..
dbff1f3
100644
(file)
--- 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);