Skip to content
Snippets Groups Projects
Commit 5db49fc3 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/pcm-dvd: fix 20bit 2 channels


Fixes part of ticket3122

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 2974050c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment