mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavc/qsvdec: check ff_decode_frame_props() return value
This commit is contained in:
parent
3dc7a9f623
commit
5bf8f29135
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user