diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-24 22:03:27 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-27 14:14:57 +0200 |
commit | b9eaf77ed1b3b551f71f90b3fb2624379d0b29c3 (patch) | |
tree | 1a5e05091b18b5b7cf5d96225592389583e83d33 /libavcodec/decode.h | |
parent | b6a680989c2f2428a25bea322ffd2b546474df75 (diff) | |
download | ffmpeg-b9eaf77ed1b3b551f71f90b3fb2624379d0b29c3.tar.gz |
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 <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/decode.h')
-rw-r--r-- | libavcodec/decode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/decode.h b/libavcodec/decode.h index b82d953516..d40327d5ab 100644 --- a/libavcodec/decode.h +++ b/libavcodec/decode.h @@ -100,6 +100,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. */ |