It does exactly the same thing as the default get_buffer. --- fftools/ffmpeg_qsv.c | 8 -------- 1 file changed, 8 deletions(-)
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; -- 2.19.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel