From 6eae7e564482c70c785ceb33c8ad476c49f24e53 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 29 Jul 2017 22:03:55 +0200 Subject: h264dec: do not export the chroma sample location immediately on parsing the SPS This SPS is not necessarily the one that will be used. Export the chroma location along with all the other SPS properties. --- libavcodec/h264dec.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavcodec/h264dec.c') diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 8a2a8a7b41..fec1adfeed 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -325,8 +325,6 @@ static int h264_init_context(AVCodecContext *avctx, H264Context *h) ff_h264_sei_uninit(&h->sei); - avctx->chroma_sample_location = AVCHROMA_LOC_LEFT; - h->nb_slice_ctx = (avctx->active_thread_type & FF_THREAD_SLICE) ? avctx->thread_count : 1; h->slice_ctx = av_mallocz_array(h->nb_slice_ctx, sizeof(*h->slice_ctx)); if (!h->slice_ctx) { -- cgit v1.2.1