[SCM] libav/experimental: pcm-dvd: Fix 20bit decoding
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Aug 10 16:03:05 UTC 2014
The following commit has been merged in the experimental branch:
commit 9880a0d4b131ef36694d62f78060350a81f08b80
Author: nu774 <honeycomb77 at gmail.com>
Date: Fri May 9 21:47:41 2014 +0900
pcm-dvd: Fix 20bit decoding
Increment the pointer as needed.
Bug-Id: 592
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
diff --git a/libavcodec/pcm-dvd.c b/libavcodec/pcm-dvd.c
index 172e93a..0872d29 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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list