aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-09-26 00:42:52 -0700
committerDiego Biurrun <diego@biurrun.de>2014-09-26 02:15:34 -0700
commitb97f6ef956293fe06ae1e99bd295f42613081f37 (patch)
tree5fad31277a32320ae37336bc266af0a3b93bcac4 /libavcodec
parent4d5b99dacdbb56373e5abe2ad35fc87b5c0c5bd2 (diff)
downloadffmpeg-b97f6ef956293fe06ae1e99bd295f42613081f37.tar.gz
pcm-dvd: Move a variable to a smaller scope
This avoids an unused variable warning on big-endian systems.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/pcm-dvd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/pcm-dvd.c b/libavcodec/pcm-dvd.c
index 0872d293b0..f68af362cf 100644
--- a/libavcodec/pcm-dvd.c
+++ b/libavcodec/pcm-dvd.c
@@ -154,21 +154,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:
do {
for (i = s->groups_per_block; i; i--) {