aboutsummaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorCarl Eugen Hoyos2019-04-16 14:28:09 +0200
committerCarl Eugen Hoyos2019-04-16 14:28:09 +0200
commit5ba769214f91f099f93185d33bd28e0460cc3908 (patch)
treeeb4e5818f91baada355ae6a6c427a6b3af8eccf1 /libavutil
parent1e8475b507ee013b99548a8eb599200bf8600bf2 (diff)
lavu/hwcontext_qsv: Mark a pointer as const.
Silences a warning: libavutil/hwcontext_qsv.c:912:15: warning: assignment discards 'const' qualifier from pointer target type
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/hwcontext_qsv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index b6d8bfe2bf..8f9838d7d8 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -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;