diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-29 13:48:26 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-29 13:48:38 +0100 |
commit | 14aa358c20c222b991c56d13b4da536dc84763d3 (patch) | |
tree | ef15962a3abc4f45ac6609f0678c77a0f8ef3336 /libavcodec/mdec.c | |
parent | 8265c0f43a441f2ec8eb31b6047297d8f18ebcda (diff) | |
parent | 098eed95bc1a6b2c8ac97f126f62bb74699670cf (diff) | |
download | ffmpeg-14aa358c20c222b991c56d13b4da536dc84763d3.tar.gz |
Merge commit '098eed95bc1a6b2c8ac97f126f62bb74699670cf'
* commit '098eed95bc1a6b2c8ac97f126f62bb74699670cf':
mdec: merge mdec_common_init() into decode_init().
eatgv: use fixed-width types where appropriate.
x86: Simplify some arch conditionals
bfin: Separate VP3 initialization code
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mdec.c')
-rw-r--r-- | libavcodec/mdec.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index 68e850c60e..a9d29ad2b3 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -211,10 +211,9 @@ static int decode_frame(AVCodecContext *avctx, return (get_bits_count(&a->gb)+31)/32*4; } -static av_cold void mdec_common_init(AVCodecContext *avctx){ +static av_cold int decode_init(AVCodecContext *avctx){ MDECContext * const a = avctx->priv_data; - - ff_dsputil_init(&a->dsp, avctx); + AVFrame *p= &a->picture; a->mb_width = (avctx->coded_width + 15) / 16; a->mb_height = (avctx->coded_height + 15) / 16; @@ -222,13 +221,8 @@ static av_cold void mdec_common_init(AVCodecContext *avctx){ avcodec_get_frame_defaults(&a->picture); avctx->coded_frame= &a->picture; a->avctx= avctx; -} -static av_cold int decode_init(AVCodecContext *avctx){ - MDECContext * const a = avctx->priv_data; - AVFrame *p= &a->picture; - - mdec_common_init(avctx); + ff_dsputil_init(&a->dsp, avctx); ff_mpeg12_init_vlcs(); ff_init_scantable(a->dsp.idct_permutation, &a->scantable, ff_zigzag_direct); |