aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-08-16 11:43:48 -0300
committerJames Almer <jamrial@gmail.com>2020-08-20 13:17:50 -0300
commitc56d787fe3130593ca6e7851569e4e0d3524af04 (patch)
tree6bca693db3946e98e9d1928c6aef21231c14e5bc
parent86f5fd471d35423e3bd5c9d2bd0076b14124faee (diff)
downloadffmpeg-c56d787fe3130593ca6e7851569e4e0d3524af04.tar.gz
avcodec/decode: move the ff_decode_frame_props() prototype to the proper header
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/decode.h5
-rw-r--r--libavcodec/internal.h5
-rw-r--r--libavcodec/libvpxdec.c1
-rw-r--r--libavcodec/mmaldec.c1
-rw-r--r--libavcodec/qtrle.c1
-rw-r--r--libavcodec/rawdec.c1
6 files changed, 9 insertions, 5 deletions
diff --git a/libavcodec/decode.h b/libavcodec/decode.h
index 5565346f96..d4e3f5c5b5 100644
--- a/libavcodec/decode.h
+++ b/libavcodec/decode.h
@@ -65,6 +65,11 @@ typedef struct FrameDecodeData {
int ff_decode_get_packet(AVCodecContext *avctx, AVPacket *pkt);
/**
+ * Set various frame properties from the codec context / packet data.
+ */
+int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame);
+
+/**
* Called during avcodec_open2() to initialize avctx->internal->bsf.
* The bsf should be freed with av_bsf_free().
*/
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 1c25aab6b9..5d0e6e7831 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -354,11 +354,6 @@ int ff_side_data_update_matrix_encoding(AVFrame *frame,
int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt);
/**
- * Set various frame properties from the codec context / packet data.
- */
-int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame);
-
-/**
* Add a CPB properties side data to an encoding context.
*/
AVCPBProperties *ff_add_cpb_side_data(AVCodecContext *avctx);
diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c
index eddcea8941..3e320446f8 100644
--- a/libavcodec/libvpxdec.c
+++ b/libavcodec/libvpxdec.c
@@ -32,6 +32,7 @@
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
+#include "decode.h"
#include "internal.h"
#include "libvpx.h"
#include "profiles.h"
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 547bece576..cd2b263a98 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -34,6 +34,7 @@
#include <stdatomic.h>
#include "avcodec.h"
+#include "decode.h"
#include "hwconfig.h"
#include "internal.h"
#include "libavutil/avassert.h"
diff --git a/libavcodec/qtrle.c b/libavcodec/qtrle.c
index 52394f5264..6bdde75df4 100644
--- a/libavcodec/qtrle.c
+++ b/libavcodec/qtrle.c
@@ -36,6 +36,7 @@
#include <string.h>
#include "avcodec.h"
+#include "decode.h"
#include "bytestream.h"
#include "internal.h"
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index a110a690f5..26663cabc2 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -26,6 +26,7 @@
#include "avcodec.h"
#include "bswapdsp.h"
+#include "decode.h"
#include "get_bits.h"
#include "internal.h"
#include "raw.h"