diff options
author | Mike Melanson <mike@multimedia.cx> | 2004-09-28 07:04:36 +0400 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2004-09-28 07:04:36 +0400 |
commit | 98772cbf7be46ac50ee12da805c1ed923e02813d (patch) | |
tree | 76b2af0302f3372eef0940f4e13d64318585b54c /libavcodec/vmdav.c | |
parent | 5088363247af1ced81b3c19f5fc6cd6a0eed061e (diff) |
if audio is PCM, push it through (sync is not perfect yet)
Originally committed as revision 3528 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vmdav.c')
-rw-r--r-- | libavcodec/vmdav.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c index c11f80af6a..4305f81fda 100644 --- a/libavcodec/vmdav.c +++ b/libavcodec/vmdav.c @@ -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; } } |