[FFmpeg-devel] [PATCH]Do not set channel_layout to unknown
Carl Eugen Hoyos
cehoyos at ag.or.at
Sun May 22 21:55:54 CEST 2011
Hi!
The demuxer may have set channel_layout, don't set it to unknown in the
decoder.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 34752b2..03ba317 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -251,8 +251,6 @@ static av_cold int output_configure(AACContext *ac,
}
memcpy(ac->tag_che_map, ac->che, 4 * MAX_ELEM_ID * sizeof(ac->che[0][0]));
-
- avctx->channel_layout = 0;
}
avctx->channels = channels;
More information about the ffmpeg-devel
mailing list