[FFmpeg-cvslog] lavc/qsvdec: check ff_decode_frame_props() return value
Anton Khirnov
git at videolan.org
Tue Jan 10 12:57:47 EET 2023
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Jan 5 09:50:57 2023 +0100| [5bf8f29135a6fd3fb2e887c7a37f3594eff97db8] | committer: Anton Khirnov
lavc/qsvdec: check ff_decode_frame_props() return value
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5bf8f29135a6fd3fb2e887c7a37f3594eff97db8
---
libavcodec/qsvdec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list