OSDN Git Service

Move resetting of channels, sample_rate back to av_find_stream_info.
[coroid/ffmpeg_saccubus.git] / libavcodec / aacdec.c
index 8a936da..d9f60d6 100644 (file)
@@ -570,9 +570,6 @@ static av_cold int aac_decode_init(AVCodecContext *avctx)
     ac->m4ac.sample_rate = avctx->sample_rate;
 
     if (avctx->extradata_size > 0) {
-        avctx->channels    = 0;
-        avctx->frame_size  = 0;
-        avctx->sample_rate = 0;
         if (decode_audio_specific_config(ac, ac->avctx, &ac->m4ac,
                                          avctx->extradata,
                                          avctx->extradata_size) < 0)