Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-02-10 18:10:42 +0400
committerDiego Biurrun <diego@biurrun.de>2012-02-13 22:20:54 +0400
commit6df5c528ca045ab4b65f2a529a8e8bd2642f47e5 (patch)
tree553b52982dcb76a8158862571f1f9b7cc7106644 /libavformat/asfdec.c
parent7331b6e718243c276d391898199e08ba3cdb9545 (diff)
Move some conditionally used variables into the block where they are used.
This allows dropping the av_unused argument from them.
Diffstat (limited to 'libavformat/asfdec.c')
-rw-r--r--libavformat/asfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index c5391a9d62..bae0eacd10 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -365,8 +365,8 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size)
/* This code assumes that extradata contains only palette */
/* This is true for all paletted codecs implemented in libavcodec */
if (st->codec->extradata_size && (st->codec->bits_per_coded_sample <= 8)) {
- int av_unused i;
#if HAVE_BIGENDIAN
+ int i;
for (i = 0; i < FFMIN(st->codec->extradata_size, AVPALETTE_SIZE)/4; i++)
asf_st->palette[i] = av_bswap32(((uint32_t*)st->codec->extradata)[i]);
#else