[FFmpeg-devel,1/3] ffmpeg_qsv: Remove format-specific get_buffer

Submitted by Mark Thompson on Nov. 11, 2018, 3:32 p.m.

Details

Message ID 20181111153215.9287-1-sw@jkqxz.net
State New
Headers show

Commit Message

Mark Thompson Nov. 11, 2018, 3:32 p.m.
It does exactly the same thing as the default get_buffer.
---
 fftools/ffmpeg_qsv.c | 8 --------
 1 file changed, 8 deletions(-)

Patch hide | download patch | download mbox

diff --git a/fftools/ffmpeg_qsv.c b/fftools/ffmpeg_qsv.c
index 9c4285b6c7..aef0c26bcc 100644
--- a/fftools/ffmpeg_qsv.c
+++ b/fftools/ffmpeg_qsv.c
@@ -30,13 +30,6 @@ 
 
 char *qsv_device = NULL;
 
-static int qsv_get_buffer(AVCodecContext *s, AVFrame *frame, int flags)
-{
-    InputStream *ist = s->opaque;
-
-    return av_hwframe_get_buffer(ist->hw_frames_ctx, frame, 0);
-}
-
 static void qsv_uninit(AVCodecContext *s)
 {
     InputStream *ist = s->opaque;
@@ -102,7 +95,6 @@  int qsv_init(AVCodecContext *s)
         return ret;
     }
 
-    ist->hwaccel_get_buffer = qsv_get_buffer;
     ist->hwaccel_uninit     = qsv_uninit;
 
     return 0;