From 4dee4a4470cd28132cc9c96e00a6cc1080a4b27f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 5 Sep 2014 16:57:57 +0200 Subject: avcodec/mpegvideo: Factor ff_mpv_decode_init() out Reviewed-by: Benoit Fouet Signed-off-by: Michael Niedermayer --- libavcodec/h263dec.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libavcodec/h263dec.c') diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 9f5500dbab..b39a63bfa9 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -48,14 +48,12 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) MpegEncContext *s = avctx->priv_data; int ret; - s->avctx = avctx; s->out_format = FMT_H263; - s->width = avctx->coded_width; - s->height = avctx->coded_height; - s->workaround_bugs = avctx->workaround_bugs; // set defaults ff_mpv_decode_defaults(s); + ff_mpv_decode_init(s, avctx); + s->quant_precision = 5; s->decode_mb = ff_h263_decode_mb; s->low_delay = 1; -- cgit v1.2.1