[FFmpeg-cvslog] avcodec/decode: remove unused AVCodecInternal compat_decode field

James Almer git at videolan.org
Sun May 10 03:03:03 EEST 2020


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Mar  8 23:18:16 2020 -0300| [6dd5da3f8b5a6dad4850e60ba26be0623c9a9bcb] | committer: James Almer

avcodec/decode: remove unused AVCodecInternal compat_decode field

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6dd5da3f8b5a6dad4850e60ba26be0623c9a9bcb
---

 libavcodec/decode.c   | 1 -
 libavcodec/internal.h | 2 --
 2 files changed, 3 deletions(-)

diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 7dc38b26c5..8102cf40de 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -736,7 +736,6 @@ static int compat_decode(AVCodecContext *avctx, AVFrame *frame,
     }
 
     *got_frame = 0;
-    avci->compat_decode = 1;
 
     if (avci->compat_decode_partial_size > 0 &&
         avci->compat_decode_partial_size != pkt->size) {
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index df82789cdc..0e3415d69b 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -173,8 +173,6 @@ typedef struct AVCodecInternal {
     int buffer_pkt_valid; // encoding: packet without data can be valid
     AVFrame *buffer_frame;
     int draining_done;
-    /* set to 1 when the caller is using the old decoding API */
-    int compat_decode;
     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 */



More information about the ffmpeg-cvslog mailing list