summaryrefslogtreecommitdiff
path: root/libavcodec/decode.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-03-09 11:35:47 +0100
committerAnton Khirnov <anton@khirnov.net>2021-03-16 11:09:36 +0100
commit20aec597d05f1930dbd4e4c5ab8ee837dea5b5f3 (patch)
treecda182ebc54fc312e735d7ce8643fd8203146fcb /libavcodec/decode.h
parentdbb1dfabb70ef0607367763806bd1dd843f8a65f (diff)
lavc: factor decoder validation/setup from avcodec_open2()
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 d4e3f5c5b5..a865fe954f 100644
--- a/libavcodec/decode.h
+++ b/libavcodec/decode.h
@@ -85,4 +85,10 @@ int ff_decode_get_hw_frames_ctx(AVCodecContext *avctx,
int ff_attach_decode_data(AVFrame *frame);
+/**
+ * Perform decoder initialization and validation.
+ * Called when opening the decoder, before the AVCodec.init() call.
+ */
+int ff_decode_preinit(AVCodecContext *avctx);
+
#endif /* AVCODEC_DECODE_H */