mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
pcm-dvd: Fix 20bit decoding
Increment the pointer as needed. Bug-Id: 592 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
0bacfa8d37
commit
9880a0d4b1
@ -177,11 +177,11 @@ static void *pcm_dvd_decode_samples(AVCodecContext *avctx, const uint8_t *src,
|
|||||||
dst32[2] = bytestream2_get_be16u(&gb) << 16;
|
dst32[2] = bytestream2_get_be16u(&gb) << 16;
|
||||||
dst32[3] = bytestream2_get_be16u(&gb) << 16;
|
dst32[3] = bytestream2_get_be16u(&gb) << 16;
|
||||||
t = bytestream2_get_byteu(&gb);
|
t = bytestream2_get_byteu(&gb);
|
||||||
*dst32 += (t & 0xf0) << 8;
|
*dst32++ += (t & 0xf0) << 8;
|
||||||
*dst32 += (t & 0x0f) << 12;
|
*dst32++ += (t & 0x0f) << 12;
|
||||||
t = bytestream2_get_byteu(&gb);
|
t = bytestream2_get_byteu(&gb);
|
||||||
*dst32 += (t & 0xf0) << 8;
|
*dst32++ += (t & 0xf0) << 8;
|
||||||
*dst32 += (t & 0x0f) << 12;
|
*dst32++ += (t & 0x0f) << 12;
|
||||||
}
|
}
|
||||||
} while (--blocks);
|
} while (--blocks);
|
||||||
return dst32;
|
return dst32;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user