diff options
author | Bastien Nocera <hadess@users.sourceforge.net> | 2006-06-19 13:51:04 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@users.sourceforge.net> | 2006-06-19 13:51:04 +0000 |
commit | 2935be1cf5c2c3a416d8c024c8f3f9df042ab995 (patch) | |
tree | 6e386e3e3a739d82a572ee0b1b617f19111b15d5 | |
parent | 467fae3a1d344e9ff7c5e8acb9c761eeb82b4460 (diff) | |
download | xine-lib-2935be1cf5c2c3a416d8c024c8f3f9df042ab995.tar.gz xine-lib-2935be1cf5c2c3a416d8c024c8f3f9df042ab995.tar.bz2 |
- we don't check the retvals, so zero the buffers just in case
CVS patchset: 8061
CVS date: 2006/06/19 13:51:04
-rw-r--r-- | src/demuxers/demux_qt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c index 0d3302aa8..e5a8c94ed 100644 --- a/src/demuxers/demux_qt.c +++ b/src/demuxers/demux_qt.c @@ -30,7 +30,7 @@ * build_frame_table * free_qt_info * - * $Id: demux_qt.c,v 1.208 2006/06/18 20:29:03 dgp85 Exp $ + * $Id: demux_qt.c,v 1.209 2006/06/19 13:51:04 hadess Exp $ * */ @@ -685,6 +685,7 @@ static int is_qt_file(input_plugin_t *qt_file) { /* if the input is non-seekable, be much more stringent about qualifying * a QT file: In this case, the moov must be the first atom in the file */ if ((qt_file->get_capabilities(qt_file) & INPUT_CAP_SEEKABLE) == 0) { + memset (&preview, 0, MAX_PREVIEW_SIZE); len = qt_file->get_optional_data(qt_file, preview, INPUT_OPTIONAL_DATA_PREVIEW); if (BE_32(&preview[4]) == MOOV_ATOM) return 1; @@ -2093,6 +2094,7 @@ static qt_error open_qt_file(qt_info *info, input_plugin_t *input, if ((input->get_capabilities(input) & INPUT_CAP_SEEKABLE)) find_moov_atom(input, &moov_atom_offset, &moov_atom_size); else { + memset (&preview, 0, MAX_PREVIEW_SIZE); input->get_optional_data(input, preview, INPUT_OPTIONAL_DATA_PREVIEW); if (BE_32(&preview[4]) != MOOV_ATOM) { /* special case if there is an ftyp atom first */ |