DTS-in-WAV handling (14 to 16 bit expansion) was flawed. Fix for bug 288.

This commit is contained in:
Moritz Bunkus 2008-08-23 14:49:28 +00:00
parent d3de460b82
commit a004bdb233
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2008-08-23 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: DTS-in-WAV handling (14 to 16 bit expansion)
was flawed. Fix for bug 288.
* mkvmerge: new feature: Added support for Vorbis in AVI (format
tag 0x566f). Fix for bug 271.

View File

@ -425,7 +425,7 @@ dts_14_to_dts_16(const unsigned short *src,
dst[5] = (dst_5>>8) | (dst_5<<8);
// 2 + 14
unsigned short src_7 = (src[7]>>8) | (src[7]<<8);
unsigned short dst_6 = (src_6 << 14) | ((src_7 & 0x3fff) >> 2);
unsigned short dst_6 = (src_6 << 14) | (src_7 & 0x3fff);
dst[6] = (dst_6>>8) | (dst_6<<8);
dst += 7;