You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc/qsvdec: check ff_decode_frame_props() return value
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user