mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-04 09:15:05 +00:00
DTS-in-WAV handling (14 to 16 bit expansion) was flawed. Fix for bug 288.
This commit is contained in:
parent
d3de460b82
commit
a004bdb233
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user