summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_slice.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-04-15 16:10:21 +0200
committerAnton Khirnov <anton@khirnov.net>2016-06-12 20:27:52 +0200
commited9a20ebe4a89de119ea97bdccf688ece8c6648c (patch)
tree8d6a939b9a337674255314e3e53ca3c5afda2557 /libavcodec/h264_slice.c
parentfa57059079190242517701120cfdccad93c866da (diff)
downloadffmpeg-streaming-ed9a20ebe4a89de119ea97bdccf688ece8c6648c.zip
ffmpeg-streaming-ed9a20ebe4a89de119ea97bdccf688ece8c6648c.tar.gz
h264: split reading the ref list modifications and actually building the ref list
This will allow postponing the reference list construction (and by consequence some other functions, like frame_start) until the whole slice header has been parsed.
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r--libavcodec/h264_slice.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 031f8cc..b84514c 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -1347,6 +1347,9 @@ static int h264_slice_header_parse(H264Context *h, H264SliceContext *sl)
sl->ref_count[1] = sl->ref_count[0] = 0;
return ret;
}
+ ret = ff_h264_build_ref_list(h, sl);
+ if (ret < 0)
+ return ret;
}
if ((pps->weighted_pred && sl->slice_type_nos == AV_PICTURE_TYPE_P) ||
OpenPOWER on IntegriCloud