diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-02-10 00:06:12 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-03-28 23:18:56 +0200 |
commit | debfbad67ad56672e6da86a339a3a2212512e65a (patch) | |
tree | cd6ac6508a63d540449fc5ceed928ca12800e93a | |
parent | ee16bb81de209fc390cf4ef17cf1c27331ce912e (diff) | |
download | ffmpeg-debfbad67ad56672e6da86a339a3a2212512e65a.tar.gz |
avcodec/libuavs3d: Check ff_set_dimensions() for failure
Untested, no testcase
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e88b99afdffce269e7a6a588948c4e00b86536f6)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/libuavs3d.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/libuavs3d.c b/libavcodec/libuavs3d.c index 0b5c6268a4..d8d09cacbc 100644 --- a/libavcodec/libuavs3d.c +++ b/libavcodec/libuavs3d.c @@ -208,7 +208,9 @@ static int libuavs3d_decode_frame(AVCodecContext *avctx, void *data, int *got_fr } avctx->has_b_frames = !seqh->low_delay; avctx->pix_fmt = seqh->bit_depth_internal == 8 ? AV_PIX_FMT_YUV420P : AV_PIX_FMT_YUV420P10LE; - ff_set_dimensions(avctx, seqh->horizontal_size, seqh->vertical_size); + ret = ff_set_dimensions(avctx, seqh->horizontal_size, seqh->vertical_size); + if (ret < 0) + return ret; h->got_seqhdr = 1; if (seqh->colour_description) { |