]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/internal.h
lavc: shedule old encoding/decoding API for removal
[ffmpeg] / libavcodec / internal.h
index 141f3fb88e0d439ade1db2b18e8b2d7611edfd7b..65760368d6c07a478a8f10b27d672831fcaa0d06 100644 (file)
@@ -131,7 +131,9 @@ typedef struct AVCodecInternal {
      */
     int last_audio_frame;
 
+#if FF_API_OLD_ENCDEC
     AVFrame *to_free;
+#endif
 
     AVBufferRef *pool;
 
@@ -179,6 +181,8 @@ typedef struct AVCodecInternal {
     AVPacket *buffer_pkt;
     AVFrame *buffer_frame;
     int draining_done;
+
+#if FF_API_OLD_ENCDEC
     int compat_decode_warned;
     /* this variable is set by the decoder internals to signal to the old
      * API compat wrappers the amount of data consumed from the last packet */
@@ -188,6 +192,7 @@ typedef struct AVCodecInternal {
     size_t compat_decode_partial_size;
     AVFrame *compat_decode_frame;
     AVPacket *compat_encode_packet;
+#endif
 
     int showed_multi_packet_warning;