diff options
author | Anton Khirnov <anton@khirnov.net> | 2017-07-29 22:03:55 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-03-20 09:16:05 +0100 |
commit | 6eae7e564482c70c785ceb33c8ad476c49f24e53 (patch) | |
tree | d395a7978e1d73895f88f2dc1e54f873af0bc0c1 /libavcodec/h264dec.c | |
parent | bdd31feec934bad07f5035250f9cb1ec5b571062 (diff) | |
download | ffmpeg-6eae7e564482c70c785ceb33c8ad476c49f24e53.tar.gz |
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.
Diffstat (limited to 'libavcodec/h264dec.c')
-rw-r--r-- | libavcodec/h264dec.c | 2 |
1 files changed, 0 insertions, 2 deletions
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) { |