diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-05 16:57:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-05 20:48:06 +0200 |
commit | 4dee4a4470cd28132cc9c96e00a6cc1080a4b27f (patch) | |
tree | fda056aa276be7189255e804a13db38db5c187d2 /libavcodec/h263dec.c | |
parent | 0b890425e3547cd1818cbe24cadfbcf1b6c93e9a (diff) | |
download | ffmpeg-4dee4a4470cd28132cc9c96e00a6cc1080a4b27f.tar.gz |
avcodec/mpegvideo: Factor ff_mpv_decode_init() out
Reviewed-by: Benoit Fouet <benoit.fouet@free.fr>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; |