diff mbox series

[FFmpeg-devel,2/3] lavu/hwcontext_qsv: call av_frame_get_buffer2 instead of av_frame_get_buffer

Message ID 20230516020624.71232-2-haihao.xiang@intel.com
State New
Headers show
Series [FFmpeg-devel,1/3] lavu/frame: add av_frame_get_buffer2 | expand

Commit Message

Xiang, Haihao May 16, 2023, 2:06 a.m. UTC
From: Haihao Xiang <haihao.xiang@intel.com>

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
---
 libavutil/hwcontext_qsv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index 4ed4242ddf..3d094c7239 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -1631,7 +1631,7 @@  static int qsv_transfer_data_from(AVHWFramesContext *ctx, AVFrame *dst,
             tmp_frame->format = dst->format;
             tmp_frame->width  = FFALIGN(dst->linesize[0], 16);
             tmp_frame->height = FFALIGN(dst->height, 16);
-            ret = av_frame_get_buffer(tmp_frame, 0);
+            ret = av_frame_get_buffer2(tmp_frame, 0, 0);
             if (ret < 0)
                 return ret;
         }
@@ -1715,7 +1715,7 @@  static int qsv_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
             tmp_frame->format = src->format;
             tmp_frame->width  = FFALIGN(src->width, 16);
             tmp_frame->height = FFALIGN(src->height, 16);
-            ret = av_frame_get_buffer(tmp_frame, 0);
+            ret = av_frame_get_buffer2(tmp_frame, 0, 0);
             if (ret < 0)
                 return ret;
         }