summaryrefslogtreecommitdiff
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-25 12:03:44 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-26 17:05:58 +0100
commit9e30859cb60b915f237581e3ce91b0d31592edc0 (patch)
tree273bc816c6712a7a32a16b4354d5880412ea2575 /libavcodec/internal.h
parent25f4304ebbf96c7ae2952d72b04ad244f8d96334 (diff)
lavc: shedule old encoding/decoding API for removal
It has been deprecated for 4 years and certain new codecs do not work with it. Also include AVCodecContext.refcounted_frames, as it has no effect with the new API.
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 141f3fb88e..65760368d6 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -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;