From e9f884416c76558098fc1f63825b293956e8483c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 21 Mar 2016 16:25:29 +0100 Subject: h264: move reading direct_spatial_mv_pred out of ff_set_ref_count() It has nothing to do with the reference count and so does not belong in this function. --- libavcodec/h264_parser.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/h264_parser.c') diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c index bcbaf1a2ce..87f6fe6706 100644 --- a/libavcodec/h264_parser.c +++ b/libavcodec/h264_parser.c @@ -117,6 +117,9 @@ static int scan_mmco_reset(AVCodecParserContext *s) if (h->pps.redundant_pic_cnt_present) get_ue_golomb(&sl->gb); // redundant_pic_count + if (sl->slice_type_nos == AV_PICTURE_TYPE_B) + get_bits1(&sl->gb); // direct_spatial_mv_pred + if (ff_set_ref_count(h, sl) < 0) return AVERROR_INVALIDDATA; -- cgit v1.2.3