summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-18 20:28:55 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-18 20:28:55 +0100
commit1a366138f0b39cfa1d8586d54f5dfce296a001d2 (patch)
tree025c1eaad8be5cbe90b4db0233351656129d0fab /src
parent0deccd94faa1565e28bebefafed7fe32b369d2b9 (diff)
downloadxine-lib-1a366138f0b39cfa1d8586d54f5dfce296a001d2.tar.gz
xine-lib-1a366138f0b39cfa1d8586d54f5dfce296a001d2.tar.bz2
Allocate atom_preamble only when it's actually going to be used.
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_qt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c
index 2fb79fe2a..3cd573530 100644
--- a/src/demuxers/demux_qt.c
+++ b/src/demuxers/demux_qt.c
@@ -685,7 +685,6 @@ static int is_qt_file(input_plugin_t *qt_file) {
off_t moov_atom_offset = -1;
int64_t moov_atom_size = -1;
int i;
- unsigned char atom_preamble[ATOM_PREAMBLE_SIZE];
int len;
/* if the input is non-seekable, be much more stringent about qualifying
@@ -715,6 +714,7 @@ static int is_qt_file(input_plugin_t *qt_file) {
if (moov_atom_offset == -1) {
return 0;
} else {
+ unsigned char atom_preamble[ATOM_PREAMBLE_SIZE];
/* check that the next atom in the chunk contains alphanumeric
* characters in the atom type field; if not, disqualify the file
* as a QT file */