diff options
author | nu774 <honeycomb77@gmail.com> | 2014-05-09 16:47:41 +0400 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2014-05-10 20:03:46 +0400 |
commit | e780c3daafe0588e035e752c771ebfcd2201746a (patch) | |
tree | 8b2062195d96c7de7f7ecda52ae7cdde590bd29c /libavcodec/pcm-dvd.c | |
parent | 7f954ca502a16feeca44d4e9a7d450b404dabc94 (diff) |
pcm-dvd: Fix 20bit decoding
Increment the pointer as needed.
Bug-Id: 592
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 9880a0d4b131ef36694d62f78060350a81f08b80)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Diffstat (limited to 'libavcodec/pcm-dvd.c')
-rw-r--r-- | libavcodec/pcm-dvd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/pcm-dvd.c b/libavcodec/pcm-dvd.c index 172e93ae82..0872d293b0 100644 --- a/libavcodec/pcm-dvd.c +++ b/libavcodec/pcm-dvd.c @@ -177,11 +177,11 @@ static void *pcm_dvd_decode_samples(AVCodecContext *avctx, const uint8_t *src, dst32[2] = bytestream2_get_be16u(&gb) << 16; dst32[3] = bytestream2_get_be16u(&gb) << 16; t = bytestream2_get_byteu(&gb); - *dst32 += (t & 0xf0) << 8; - *dst32 += (t & 0x0f) << 12; + *dst32++ += (t & 0xf0) << 8; + *dst32++ += (t & 0x0f) << 12; t = bytestream2_get_byteu(&gb); - *dst32 += (t & 0xf0) << 8; - *dst32 += (t & 0x0f) << 12; + *dst32++ += (t & 0xf0) << 8; + *dst32++ += (t & 0x0f) << 12; } } while (--blocks); return dst32; |