mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
g2meet: stop using deprecated avcodec_set_dimensions
This commit is contained in:
parent
ec7063005e
commit
58c6239e85
@ -702,7 +702,7 @@ static int g2m_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
goto header_fail;
|
goto header_fail;
|
||||||
}
|
}
|
||||||
if (c->width != avctx->width || c->height != avctx->height)
|
if (c->width != avctx->width || c->height != avctx->height)
|
||||||
avcodec_set_dimensions(avctx, c->width, c->height);
|
ff_set_dimensions(avctx, c->width, c->height);
|
||||||
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user