From b9eaf77ed1b3b551f71f90b3fb2624379d0b29c3 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 24 Aug 2022 22:03:27 +0200 Subject: avcodec/internal: Move ff_set_dimensions() to decode.h Decoder-only, as the dimensions are set by the user when encoding. Also fixup the other headers a bit while removing unnecessary internal.h inclusions. Signed-off-by: Andreas Rheinhardt --- libavcodec/decode.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavcodec/decode.h') diff --git a/libavcodec/decode.h b/libavcodec/decode.h index b82d953516..d40327d5ab 100644 --- a/libavcodec/decode.h +++ b/libavcodec/decode.h @@ -99,6 +99,12 @@ int ff_copy_palette(void *dst, const AVPacket *src, void *logctx); */ int ff_decode_preinit(AVCodecContext *avctx); +/** + * Check that the provided frame dimensions are valid and set them on the codec + * context. + */ +int ff_set_dimensions(AVCodecContext *s, int width, int height); + /** * Check that the provided sample aspect ratio is valid and set it on the codec * context. -- cgit v1.2.3