OSDN Git Service

dca: fix dynrange coefficient in xch
authorNick Brereton <nick@nbrereton.net>
Sat, 31 Jul 2010 22:15:59 +0000 (22:15 +0000)
committerBenjamin Larsson <banan@ludd.ltu.se>
Sat, 31 Jul 2010 22:15:59 +0000 (22:15 +0000)
Patch by Nick Brereton

Originally committed as revision 24637 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dca.c

index aa57625..e8627a2 100644 (file)
@@ -691,7 +691,7 @@ static int dca_subframe_header(DCAContext * s, int base_channel, int block_index
     }
 
     /* Dynamic range coefficient */
-    if (s->dynrange)
+    if (!base_channel && s->dynrange)
         s->dynrange_coef = get_bits(&s->gb, 8);
 
     /* Side information CRC check word */