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

James Almer jamrial at gmail.com
Mon Mar 9 04:19:55 EET 2020


Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavcodec/decode.c   | 1 -
 libavcodec/internal.h | 1 -
 2 files changed, 2 deletions(-)

diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 03b9da25f9..0e3d7e17e4 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -826,7 +826,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 bccd9222d4..972e93bcfa 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -208,7 +208,6 @@ typedef struct AVCodecInternal {
     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 */
-- 
2.25.1



More information about the ffmpeg-devel mailing list