@@ -27,6 +27,7 @@
#include "av1dec.h"
#include "bytestream.h"
#include "codec_internal.h"
+#include "decode.h"
#include "hwconfig.h"
#include "internal.h"
#include "profiles.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 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
@@ -44,6 +44,7 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "dv.h"
#include "dv_profile_internal.h"
#include "dvdata.h"
@@ -51,6 +51,7 @@
#endif
#include "codec_internal.h"
+#include "decode.h"
#include "exrdsp.h"
#include "get_bits.h"
#include "internal.h"
@@ -36,6 +36,7 @@
#include "internal.h"
#include "cabac.h"
#include "cabac_functions.h"
+#include "decode.h"
#include "error_resilience.h"
#include "avcodec.h"
#include "h264.h"
@@ -42,6 +42,7 @@
#include "bytestream.h"
#include "cabac_functions.h"
#include "codec_internal.h"
+#include "decode.h"
#include "golomb.h"
#include "hevc.h"
#include "hevc_data.h"
@@ -223,12 +223,6 @@ int avpriv_codec_get_cap_skip_frame_fill_param(const AVCodec *codec);
*/
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.
- */
-int ff_set_sar(AVCodecContext *avctx, AVRational sar);
-
/**
* Add or update AV_FRAME_DATA_MATRIXENCODING side data.
*/
@@ -30,6 +30,7 @@
#include "libavutil/thread.h"
#include "internal.h"
#include "avcodec.h"
+#include "decode.h"
#include "mpegvideo.h"
#include "vc1.h"
#include "vc1data.h"
@@ -41,6 +41,7 @@
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
#include "hpeldsp.h"
#include "internal.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> --- libavcodec/av1dec.c | 1 + libavcodec/decode.h | 6 ++++++ libavcodec/dvdec.c | 1 + libavcodec/exr.c | 1 + libavcodec/h264_slice.c | 1 + libavcodec/hevcdec.c | 1 + libavcodec/internal.h | 6 ------ libavcodec/vc1.c | 1 + libavcodec/vp3.c | 1 + 9 files changed, 13 insertions(+), 6 deletions(-)