You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
g2meet: check ff_set_dimensions return value
CC: libav-stable@libav.org Bug-Id: CID 1135739
This commit is contained in:
@@ -719,8 +719,11 @@ static int g2m_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
ret = AVERROR_INVALIDDATA;
|
ret = AVERROR_INVALIDDATA;
|
||||||
goto header_fail;
|
goto header_fail;
|
||||||
}
|
}
|
||||||
if (c->width != avctx->width || c->height != avctx->height)
|
if (c->width != avctx->width || c->height != avctx->height) {
|
||||||
ff_set_dimensions(avctx, c->width, c->height);
|
ret = ff_set_dimensions(avctx, c->width, c->height);
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
c->compression = bytestream2_get_be32(&bc);
|
c->compression = bytestream2_get_be32(&bc);
|
||||||
if (c->compression != 2 && c->compression != 3) {
|
if (c->compression != 2 && c->compression != 3) {
|
||||||
av_log(avctx, AV_LOG_ERROR,
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
|
Reference in New Issue
Block a user