Commit f176e11c authored by Anton Khirnov's avatar Anton Khirnov

avs: stop using deprecated avcodec_set_dimensions

parent 78780c8b
...@@ -160,7 +160,7 @@ static av_cold int avs_decode_init(AVCodecContext * avctx) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment