summaryrefslogtreecommitdiff
path: root/libavcodec/decode.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-24 21:43:37 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-27 14:14:56 +0200
commitb6a680989c2f2428a25bea322ffd2b546474df75 (patch)
treec7c94251e966ea7ff5e1826fcac0b4a908be748b /libavcodec/decode.h
parent66b691f99f77ebb59d5c192aab4eefec4d200be8 (diff)
avcodec/internal: Move ff_set_sar() to decode.h
Only used by decoders, as the SAR has to be set by the user when encoding. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/decode.h')
-rw-r--r--libavcodec/decode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/decode.h b/libavcodec/decode.h
index 25db4a9e4d..b82d953516 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 sample aspect ratio is valid and set it on the codec
+ * context.
+ */
+int ff_set_sar(AVCodecContext *avctx, AVRational sar);
+
+/**
* Select the (possibly hardware accelerated) pixel format.
* This is a wrapper around AVCodecContext.get_format() and should be used
* instead of calling get_format() directly.