aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-01-05 09:50:57 +0100
committerAnton Khirnov <anton@khirnov.net>2023-01-10 11:47:29 +0100
commit5bf8f29135a6fd3fb2e887c7a37f3594eff97db8 (patch)
treec281ac63332737589ffe041f7a5ca3eaa6195295 /libavcodec
parent3dc7a9f6239d909b3e66712b32380822466882af (diff)
downloadffmpeg-5bf8f29135a6fd3fb2e887c7a37f3594eff97db8.tar.gz
lavc/qsvdec: check ff_decode_frame_props() return value
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/qsvdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
index 92bfea196e..6bc85116ad 100644
--- a/libavcodec/qsvdec.c
+++ b/libavcodec/qsvdec.c
@@ -128,7 +128,9 @@ static int qsv_get_continuous_buffer(AVCodecContext *avctx, AVFrame *frame,
{
int ret = 0;
- ff_decode_frame_props(avctx, frame);
+ ret = ff_decode_frame_props(avctx, frame);
+ if (ret < 0)
+ return ret;
frame->width = avctx->width;
frame->height = avctx->height;