mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
qtdemux: Fix wrong compiler warning with gcc 6.2
| ../../../git/gst/isomp4/qtdemux.c: In function 'qtdemux_parse_tree': | ../../../git/gst/isomp4/qtdemux.c:10224:24: error: 'size' may be used uninitialized in this function [-Werror=maybe-uninitialized] | offset += size; | ^~ | ../../../git/gst/isomp4/qtdemux.c:10197:25: note: 'size' was declared here | guint32 size, tag; | ^~~~ https://bugzilla.gnome.org/show_bug.cgi?id=774747
This commit is contained in:
parent
5137650782
commit
fc3022da1c
1 changed files with 1 additions and 1 deletions
|
@ -10194,7 +10194,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||
* to find one called field. Walk through them. */
|
||||
off_t offset = min_size;
|
||||
while (offset + 8 < len) {
|
||||
guint32 size, tag;
|
||||
guint32 size = 0, tag;
|
||||
ok = gst_byte_reader_get_uint32_le (&br, &size);
|
||||
ok &= gst_byte_reader_get_uint32_le (&br, &tag);
|
||||
if (!ok || size < 8) {
|
||||
|
|
Loading…
Reference in a new issue