summaryrefslogtreecommitdiff
path: root/libavcodec/dv.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-23 11:06:32 +0200
committerAnton Khirnov <anton@khirnov.net>2022-09-05 08:02:28 +0200
commitd1ba5d883ef95489fe59d035dd71105dc1184e84 (patch)
tree5e3cddaa264e2de0a1d530ce552a40851af50be0 /libavcodec/dv.h
parentb62d41df07c627a677c69da139fd7e3710495a3a (diff)
downloadffmpeg-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.h')
-rw-r--r--libavcodec/dv.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/dv.h b/libavcodec/dv.h
index 331b8e846a..2b082d0140 100644
--- a/libavcodec/dv.h
+++ b/libavcodec/dv.h
@@ -97,8 +97,6 @@ enum dv_pack_type {
int ff_dv_init_dynamic_tables(DVVideoContext *s, const AVDVProfile *d);
-int ff_dvvideo_init(AVCodecContext *avctx);
-
static inline int dv_work_pool_size(const AVDVProfile *d)
{
int size = d->n_difchan * d->difseg_size * 27;