mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
avidemux: fix compiler warning
gstavidemux.c: In function 'gst_avi_demux_parse_stream': gstavidemux.c:1261:24: error: 'data' may be used uninitialized in this function [-Werror=uninitialized] gstavidemux.c:1204:11: note: 'data' was declared here
This commit is contained in:
parent
63fc64dd98
commit
f94ea7299a
1 changed files with 4 additions and 2 deletions
|
@ -1209,10 +1209,12 @@ gst_avi_demux_parse_superindex (GstAviDemux * avi,
|
|||
|
||||
*_indexes = NULL;
|
||||
|
||||
if (buf)
|
||||
if (buf) {
|
||||
data = gst_buffer_map (buf, &size, NULL, GST_MAP_READ);
|
||||
else
|
||||
} else {
|
||||
data = NULL;
|
||||
size = 0;
|
||||
}
|
||||
|
||||
if (size < 24)
|
||||
goto too_small;
|
||||
|
|
Loading…
Reference in a new issue