summaryrefslogtreecommitdiff
path: root/libavcodec/rv34.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-05 16:57:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-05 20:48:06 +0200
commit4dee4a4470cd28132cc9c96e00a6cc1080a4b27f (patch)
treefda056aa276be7189255e804a13db38db5c187d2 /libavcodec/rv34.c
parent0b890425e3547cd1818cbe24cadfbcf1b6c93e9a (diff)
downloadffmpeg-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/rv34.c')
-rw-r--r--libavcodec/rv34.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index c8aa6b6738..a232ab2593 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -1490,14 +1490,9 @@ av_cold int ff_rv34_decode_init(AVCodecContext *avctx)
int ret;
ff_mpv_decode_defaults(s);
- s->avctx = avctx;
+ ff_mpv_decode_init(s, avctx);
s->out_format = FMT_H263;
- s->codec_id = avctx->codec_id;
- s->width = avctx->width;
- s->height = avctx->height;
-
- r->s.avctx = avctx;
avctx->pix_fmt = AV_PIX_FMT_YUV420P;
avctx->has_b_frames = 1;
s->low_delay = 0;