aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-05-18 05:39:39 +0200
committerAnton Khirnov <anton@khirnov.net>2023-05-28 10:47:59 +0200
commitdadeb28e257ef7d15695a5da57e1a7a81e716876 (patch)
treed011b4fe39c3c7052c5128ae7d377e74a754c345 /fftools/ffmpeg.h
parent335688a3d3835c3b6e1364231b75e6817d7941a0 (diff)
downloadffmpeg-dadeb28e257ef7d15695a5da57e1a7a81e716876.tar.gz
fftools/ffmpeg_dec: add decoder private data
Move InputStream.decoded_frame to it. Analogous to what has been previously done for all the other major components.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r--fftools/ffmpeg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index 927e402f7c..92e56ee80c 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -324,6 +324,8 @@ typedef struct FilterGraph {
int nb_outputs;
} FilterGraph;
+typedef struct Decoder Decoder;
+
typedef struct InputStream {
const AVClass *class;
@@ -343,10 +345,10 @@ typedef struct InputStream {
* concurrently by the demuxing thread.
*/
AVCodecParameters *par;
+ Decoder *decoder;
AVCodecContext *dec_ctx;
const AVCodec *dec;
const AVCodecDescriptor *codec_desc;
- AVFrame *decoded_frame;
AVPacket *pkt;
AVRational framerate_guessed;
@@ -812,6 +814,7 @@ AVBufferRef *hw_device_for_filter(void);
int hwaccel_decode_init(AVCodecContext *avctx);
int dec_open(InputStream *ist);
+void dec_free(Decoder **pdec);
/**
* Submit a packet for decoding