oggdemux: decide flac header packet by content rather than count
This commit is contained in:
parent
66545eb7a2
commit
3f4820d6c2
@ -620,6 +620,12 @@ setup_flac_mapper (GstOggStream * pad, ogg_packet * packet)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
is_header_flac (GstOggStream * pad, ogg_packet * packet)
|
||||||
|
{
|
||||||
|
return (packet->bytes > 0 && (packet->packet[0] != 0xff));
|
||||||
|
}
|
||||||
|
|
||||||
static gint64
|
static gint64
|
||||||
packet_duration_flac (GstOggStream * pad, ogg_packet * packet)
|
packet_duration_flac (GstOggStream * pad, ogg_packet * packet)
|
||||||
{
|
{
|
||||||
@ -1187,7 +1193,7 @@ static const GstOggMap mappers[] = {
|
|||||||
granulepos_to_granule_default,
|
granulepos_to_granule_default,
|
||||||
granule_to_granulepos_default,
|
granule_to_granulepos_default,
|
||||||
is_keyframe_true,
|
is_keyframe_true,
|
||||||
is_header_count,
|
is_header_flac,
|
||||||
packet_duration_flac
|
packet_duration_flac
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user