diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-18 20:36:37 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-18 20:36:37 +0100 |
commit | c57b06b240fd159758f93206726556f31e12a8d0 (patch) | |
tree | 4ba0f6f4663c43b54864a47d13d2b0ea2b368c16 /src | |
parent | d3298c9017077d3ea3ea91110dcac349d58448a9 (diff) | |
download | xine-lib-c57b06b240fd159758f93206726556f31e12a8d0.tar.gz xine-lib-c57b06b240fd159758f93206726556f31e12a8d0.tar.bz2 |
Declare color_* variables only when actually used.
Diffstat (limited to 'src')
-rw-r--r-- | src/demuxers/demux_qt.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c index 4c9399608..ae657fb66 100644 --- a/src/demuxers/demux_qt.c +++ b/src/demuxers/demux_qt.c @@ -1004,18 +1004,17 @@ static qt_error parse_trak_atom (qt_trak *trak, const uint32_t current_stsd_atom_size = _X_BE_32(&trak_atom[atom_pos - 4]); - /* for palette traversal */ - int color_depth; - int color_flag; - int color_start; - int color_count; - int color_end; - int color_index; - int color_dec; - int color_greyscale; - const unsigned char *color_table; - if (trak->type == MEDIA_VIDEO) { + /* for palette traversal */ + int color_depth; + int color_flag; + int color_start; + int color_count; + int color_end; + int color_index; + int color_dec; + int color_greyscale; + const unsigned char *color_table; trak->stsd_atoms[k].video.media_id = k + 1; trak->stsd_atoms[k].video.properties_offset = properties_offset; |