mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
use existing data in mp3 when available
Original commit message from CVS: use existing data in mp3 when available
This commit is contained in:
parent
8f4600fbff
commit
908cbecf56
1 changed files with 5 additions and 1 deletions
|
@ -398,7 +398,11 @@ mp3_type_find (GstTypeFind *tf, gpointer unused)
|
||||||
guint prev_layer = 0, prev_bitrate = 0,
|
guint prev_layer = 0, prev_bitrate = 0,
|
||||||
prev_channels = 0, prev_samplerate = 0;
|
prev_channels = 0, prev_samplerate = 0;
|
||||||
|
|
||||||
head_data = gst_type_find_peek (tf, offset, 4);
|
if (offset + 4 <= skipped + size) {
|
||||||
|
head_data = data + offset - skipped;
|
||||||
|
} else {
|
||||||
|
head_data = gst_type_find_peek (tf, offset, 4);
|
||||||
|
}
|
||||||
if (!head_data)
|
if (!head_data)
|
||||||
break;
|
break;
|
||||||
head = GUINT32_FROM_BE(*((guint32 *) head_data));
|
head = GUINT32_FROM_BE(*((guint32 *) head_data));
|
||||||
|
|
Loading…
Reference in a new issue