[FFmpeg-cvslog] avcodec/pcm-dvd: fix 20bit 2 channels

Michael Niedermayer git at videolan.org
Tue Nov 19 11:47:22 CET 2013


ffmpeg | branch: release/2.1 | Michael Niedermayer <michaelni at gmx.at> | Mon Nov 18 20:56:40 2013 +0100| [607e5038a9a521e6f64855c6eb408c433611b611] | committer: Carl Eugen Hoyos

avcodec/pcm-dvd: fix 20bit 2 channels

Fixes part of ticket3122

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 5db49fc38d9132e134de92584f296559bec3b789)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=607e5038a9a521e6f64855c6eb408c433611b611
---

 libavcodec/pcm-dvd.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/pcm-dvd.c b/libavcodec/pcm-dvd.c
index 9696b09..b895e39 100644
--- a/libavcodec/pcm-dvd.c
+++ b/libavcodec/pcm-dvd.c
@@ -180,11 +180,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;



More information about the ffmpeg-cvslog mailing list