if audio is PCM, push it through (sync is not perfect yet)
authorMike Melanson <mike@multimedia.cx>
Tue, 28 Sep 2004 03:04:36 +0000 (03:04 +0000)
committerMike Melanson <mike@multimedia.cx>
Tue, 28 Sep 2004 03:04:36 +0000 (03:04 +0000)
Originally committed as revision 3528 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vmdav.c

index c11f80a..4305f81 100644 (file)
@@ -494,13 +494,10 @@ memset(data, 0x00, s->block_align * 2);
 bytes_decoded = s->block_align * 2;
             }
         } else {
-            if (s->bits == 16) {
-            } else {
-                /* copy the data but convert it to signed */
-                for (i = 0; i < s->block_align; i++)
-                    data[i * 2 + 1] = buf[i] + 0x80;
-                bytes_decoded = s->block_align * 2;
-            }
+            /* copy the data but convert it to signed */
+            for (i = 0; i < s->block_align; i++)
+                data[i * 2 + 1] = buf[i] + 0x80;
+            bytes_decoded = s->block_align * 2;
         }
     }