mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
flacparse: fix unitialized access
This commit is contained in:
parent
fdd93fa85d
commit
83678af5e0
1 changed files with 2 additions and 1 deletions
|
@ -953,7 +953,7 @@ gst_flac_parse_process_seektable (GstFlacParse * flacparse, gint64 boffset)
|
|||
"parsing seektable; base offset %" G_GINT64_FORMAT, boffset);
|
||||
|
||||
if (boffset <= 0)
|
||||
goto done;
|
||||
goto exit;
|
||||
|
||||
data = gst_buffer_map (flacparse->seektable, &bufsize, NULL, GST_MAP_READ);
|
||||
gst_byte_reader_init (&br, data, bufsize);
|
||||
|
@ -984,6 +984,7 @@ gst_flac_parse_process_seektable (GstFlacParse * flacparse, gint64 boffset)
|
|||
|
||||
done:
|
||||
gst_buffer_unmap (flacparse->seektable, data, bufsize);
|
||||
exit:
|
||||
gst_buffer_unref (flacparse->seektable);
|
||||
flacparse->seektable = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue