]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/encode.h
lavc: factor out encoder init/validation from avcodec_open2()
[ffmpeg] / libavcodec / encode.h
index 089c31091c771a1876894e7fd3d35d008d7dfed0..9af2f42483fd2c497ce385bc6207a68889f092e4 100644 (file)
@@ -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 */