diff mbox series

[FFmpeg-devel,3/3] ffmpeg: remove unused hw_frames_ctx AVBufferRef from InputStream

Message ID 20211114185956.53923-3-jamrial@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/3] ffmpeg: allocate the output hwaccel AVFrame only once
Related show

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

James Almer Nov. 14, 2021, 6:59 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 fftools/ffmpeg.c | 6 ------
 fftools/ffmpeg.h | 1 -
 2 files changed, 7 deletions(-)
diff mbox series

Patch

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index bde5a2f603..05e2a75f1f 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -2925,12 +2925,6 @@  static enum AVPixelFormat get_format(AVCodecContext *s, const enum AVPixelFormat
             }
         }
 
-        if (ist->hw_frames_ctx) {
-            s->hw_frames_ctx = av_buffer_ref(ist->hw_frames_ctx);
-            if (!s->hw_frames_ctx)
-                return AV_PIX_FMT_NONE;
-        }
-
         ist->hwaccel_pix_fmt = *p;
         break;
     }
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index 2d6c5416c4..6e1f4d8db4 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -380,7 +380,6 @@  typedef struct InputStream {
     int  (*hwaccel_retrieve_data)(AVCodecContext *s, AVFrame *frame);
     enum AVPixelFormat hwaccel_pix_fmt;
     enum AVPixelFormat hwaccel_retrieved_pix_fmt;
-    AVBufferRef *hw_frames_ctx;
     AVFrame *hwaccel_frame;
 
     /* stats */