[FFmpeg-cvslog] aacdec: Don' t fall back to the old output configuration when no old configuration is present .

Alex Converse git at videolan.org
Thu Aug 9 19:34:52 CEST 2012


ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Tue Aug  7 12:19:58 2012 -0700| [122d5c526a43122b1f9ac9bce79e3938c8354e43] | committer: Alex Converse

aacdec: Don't fall back to the old output configuration when no old configuration is present.

Fixes MP4 files where the first frame is broken.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=122d5c526a43122b1f9ac9bce79e3938c8354e43
---

 libavcodec/aacdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 958c9d2..1c59ec5 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -365,7 +365,7 @@ static void push_output_configuration(AACContext *ac) {
  * configuration is unlocked.
  */
 static void pop_output_configuration(AACContext *ac) {
-    if (ac->oc[1].status != OC_LOCKED) {
+    if (ac->oc[1].status != OC_LOCKED && ac->oc[0].status != OC_NONE) {
         ac->oc[1] = ac->oc[0];
         ac->avctx->channels = ac->oc[1].channels;
         ac->avctx->channel_layout = ac->oc[1].channel_layout;



More information about the ffmpeg-cvslog mailing list