diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-01-25 12:03:44 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-01-26 17:05:58 +0100 |
commit | 9e30859cb60b915f237581e3ce91b0d31592edc0 (patch) | |
tree | 273bc816c6712a7a32a16b4354d5880412ea2575 /libavcodec/internal.h | |
parent | 25f4304ebbf96c7ae2952d72b04ad244f8d96334 (diff) | |
download | ffmpeg-9e30859cb60b915f237581e3ce91b0d31592edc0.tar.gz |
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.h | 5 |
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; |