mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avs: stop using deprecated avcodec_set_dimensions
This commit is contained in:
parent
78780c8bf6
commit
f176e11cff
@ -160,7 +160,7 @@ static av_cold int avs_decode_init(AVCodecContext * avctx)
|
|||||||
{
|
{
|
||||||
AvsContext *s = avctx->priv_data;
|
AvsContext *s = avctx->priv_data;
|
||||||
avctx->pix_fmt = AV_PIX_FMT_PAL8;
|
avctx->pix_fmt = AV_PIX_FMT_PAL8;
|
||||||
avcodec_set_dimensions(avctx, 318, 198);
|
ff_set_dimensions(avctx, 318, 198);
|
||||||
avcodec_get_frame_defaults(&s->picture);
|
avcodec_get_frame_defaults(&s->picture);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user