Commit 4c57be12 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'b97f6ef9'

* commit 'b97f6ef9':
  pcm-dvd: Move a variable to a smaller scope
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents b0458e62 b97f6ef9
......@@ -158,21 +158,21 @@ static void *pcm_dvd_decode_samples(AVCodecContext *avctx, const uint8_t *src,
GetByteContext gb;
int i;
uint8_t t;
int samples;
bytestream2_init(&gb, src, blocks * s->block_size);
switch (avctx->bits_per_coded_sample) {
case 16:
case 16: {
#if HAVE_BIGENDIAN
bytestream2_get_buffer(&gb, dst16, blocks * s->block_size);
dst16 += blocks * s->block_size / 2;
#else
samples = blocks * avctx->channels;
int samples = blocks * avctx->channels;
do {
*dst16++ = bytestream2_get_be16u(&gb);
} while (--samples);
#endif
return dst16;
}
case 20:
if (avctx->channels == 1) {
do {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment