]> git.sesse.net Git - ffmpeg/commitdiff
lavu/hwcontext_qsv: Mark a pointer as const.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 16 Apr 2019 12:28:09 +0000 (14:28 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 16 Apr 2019 12:28:09 +0000 (14:28 +0200)
Silences a warning:
libavutil/hwcontext_qsv.c:912:15: warning: assignment discards 'const' qualifier from pointer target type

libavutil/hwcontext_qsv.c

index b6d8bfe2bfbaaf60aa7b200a6e9e8b2640344fe8..8f9838d7d819b64db7e5251988a6c77d871451ef 100644 (file)
@@ -863,7 +863,8 @@ static int qsv_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
     mfxStatus err;
     int ret = 0;
     /* make a copy if the input is not padded as libmfx requires */
-    AVFrame tmp_frame, *src_frame;
+    AVFrame tmp_frame;
+    const AVFrame *src_frame;
     int realigned = 0;