diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-08-23 11:06:32 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-09-05 08:02:28 +0200 |
commit | d1ba5d883ef95489fe59d035dd71105dc1184e84 (patch) | |
tree | 5e3cddaa264e2de0a1d530ce552a40851af50be0 /libavcodec/dv.c | |
parent | b62d41df07c627a677c69da139fd7e3710495a3a (diff) | |
download | ffmpeg-d1ba5d883ef95489fe59d035dd71105dc1184e84.tar.gz |
lavc/dv: remove ff_dvvideo_init()
The function contains only two assignments, setting DVVideoContext.avctx
and AVCodecContext.chroma_sample_location. However, the decoder does not
use the former, and the encoder should not be setting the latter.
Therefore move the first assignment to dvenc and the second to dvdec.
Make the encoder warn if the user-signalled chroma sample location does
not match the supported one, and return an error on higher compliance
levels.
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r-- | libavcodec/dv.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index e2550c4cc1..9e05aa8927 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -184,13 +184,3 @@ int ff_dv_init_dynamic_tables(DVVideoContext *ctx, const AVDVProfile *d) return 0; } - -av_cold int ff_dvvideo_init(AVCodecContext *avctx) -{ - DVVideoContext *s = avctx->priv_data; - - s->avctx = avctx; - avctx->chroma_sample_location = AVCHROMA_LOC_TOPLEFT; - - return 0; -} |