summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-21 14:59:58 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-21 15:18:10 +0100
commitcc2cfdc49786a8268d1514661c17ea96035d6f1d (patch)
treefd17d2f29472b84fce724d66fc982ee51f7cd42f /libavcodec/h264_parser.c
parent27b3522ba3cf539e13bb0f8f9c68d2dd513a8f73 (diff)
parent95eb35f30513e335990ad0d5dca6ddc318477291 (diff)
downloadffmpeg-streaming-cc2cfdc49786a8268d1514661c17ea96035d6f1d.zip
ffmpeg-streaming-cc2cfdc49786a8268d1514661c17ea96035d6f1d.tar.gz
Merge commit '95eb35f30513e335990ad0d5dca6ddc318477291'
* commit '95eb35f30513e335990ad0d5dca6ddc318477291': h264: move the ref lists variables into the per-slice context Conflicts: libavcodec/h264.c libavcodec/h264.h libavcodec/h264_cabac.c libavcodec/h264_cavlc.c libavcodec/h264_direct.c libavcodec/h264_mb.c libavcodec/h264_picture.c libavcodec/h264_refs.c libavcodec/h264_slice.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_parser.c')
-rw-r--r--libavcodec/h264_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index 4d7eb91..fe14c24 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -145,7 +145,7 @@ static int scan_mmco_reset(AVCodecParserContext *s)
if (sl->slice_type_nos != AV_PICTURE_TYPE_I) {
int list;
- for (list = 0; list < h->list_count; list++) {
+ for (list = 0; list < sl->list_count; list++) {
if (get_bits1(&h->gb)) {
int index;
for (index = 0; ; index++) {
@@ -161,7 +161,7 @@ static int scan_mmco_reset(AVCodecParserContext *s)
} else
break;
- if (index >= h->ref_count[list]) {
+ if (index >= sl->ref_count[list]) {
av_log(h->avctx, AV_LOG_ERROR,
"reference count %d overflow\n", index);
return AVERROR_INVALIDDATA;
OpenPOWER on IntegriCloud