lavc/qsvdec: check ff_decode_frame_props() return value

This commit is contained in:
Anton Khirnov 2023-01-05 09:50:57 +01:00
parent 3dc7a9f623
commit 5bf8f29135
1 changed files with 3 additions and 1 deletions

View File

@ -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;