mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 19:55:32 +00:00
oggdemux: decide flac header packet by content rather than count
This commit is contained in:
parent
66545eb7a2
commit
3f4820d6c2
1 changed files with 7 additions and 1 deletions
|
@ -620,6 +620,12 @@ setup_flac_mapper (GstOggStream * pad, ogg_packet * packet)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
is_header_flac (GstOggStream * pad, ogg_packet * packet)
|
||||
{
|
||||
return (packet->bytes > 0 && (packet->packet[0] != 0xff));
|
||||
}
|
||||
|
||||
static gint64
|
||||
packet_duration_flac (GstOggStream * pad, ogg_packet * packet)
|
||||
{
|
||||
|
@ -1187,7 +1193,7 @@ static const GstOggMap mappers[] = {
|
|||
granulepos_to_granule_default,
|
||||
granule_to_granulepos_default,
|
||||
is_keyframe_true,
|
||||
is_header_count,
|
||||
is_header_flac,
|
||||
packet_duration_flac
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue