Commit 3f4820d6 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

oggdemux: decide flac header packet by content rather than count

parent 66545eb7
......@@ -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
},
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment