summaryrefslogtreecommitdiff
path: root/libavcodec/encode.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/encode.h')
-rw-r--r--libavcodec/encode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/encode.h b/libavcodec/encode.h
index 089c31091c..9af2f42483 100644
--- a/libavcodec/encode.h
+++ b/libavcodec/encode.h
@@ -44,4 +44,10 @@ int ff_encode_get_frame(AVCodecContext *avctx, AVFrame *frame);
*/
int ff_get_encode_buffer(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int flags);
+/*
+ * Perform encoder initialization and validation.
+ * Called when opening the encoder, before the AVCodec.init() call.
+ */
+int ff_encode_preinit(AVCodecContext *avctx);
+
#endif /* AVCODEC_ENCODE_H */