]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/internal.h
avcodec/avcodec: Store whether AVCodec->close needs to be called
[ffmpeg] / libavcodec / internal.h
index b101f20c40e1c7caae44d5ad18990bd2e74af1b3..60f65d3f2cd693fcbfe5375a3fb9f423074b3c78 100644 (file)
@@ -160,6 +160,12 @@ typedef struct AVCodecInternal {
 
     EncodeSimpleContext es;
 
+    /**
+     * If this is set, then AVCodec->close (if existing) needs to be called
+     * for the parent AVCodecContext.
+     */
+    int needs_close;
+
     /**
      * Number of audio samples to skip at the start of the next decoded frame
      */