diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-26 17:42:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-26 17:42:42 +0200 |
commit | 5938b4d3983ca39bc37cf70d5920c2ca29ea51cd (patch) | |
tree | 8a8d91064547ec5d001b9c19d873b79b4f2a06ac /libavcodec/mpc7.c | |
parent | 55fa883b30054fe5a222120136ace0532c7b301c (diff) | |
download | ffmpeg-5938b4d3983ca39bc37cf70d5920c2ca29ea51cd.tar.gz |
mpc7: Initialize AVFrame properly
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpc7.c')
-rw-r--r-- | libavcodec/mpc7.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c index 0a4582635f..48cd3021a1 100644 --- a/libavcodec/mpc7.c +++ b/libavcodec/mpc7.c @@ -97,6 +97,9 @@ static av_cold int mpc7_decode_init(AVCodecContext * avctx) avctx->sample_fmt = AV_SAMPLE_FMT_S16; avctx->channel_layout = AV_CH_LAYOUT_STEREO; + avcodec_get_frame_defaults(&c->frame); + avctx->coded_frame = &c->frame; + if(vlc_initialized) return 0; av_log(avctx, AV_LOG_DEBUG, "Initing VLC\n"); scfi_vlc.table = scfi_table; @@ -137,9 +140,6 @@ static av_cold int mpc7_decode_init(AVCodecContext * avctx) } vlc_initialized = 1; - avcodec_get_frame_defaults(&c->frame); - avctx->coded_frame = &c->frame; - return 0; } |