Headers are inherently durationless.
Instead, set duration to 0 to avoid increasing tracked granpos,
and do not warn about it, since it is totally expected.
https://bugzilla.gnome.org/show_bug.cgi?id=657151
}
/* get timing info for the packet */
- duration = gst_ogg_stream_get_packet_duration (&pad->map, packet);
- GST_DEBUG_OBJECT (ogg, "packet duration %" G_GUINT64_FORMAT, duration);
+ if (gst_ogg_stream_packet_is_header (&pad->map, packet)) {
+ duration = 0;
+ GST_DEBUG_OBJECT (ogg, "packet is header");
+ } else {
+ duration = gst_ogg_stream_get_packet_duration (&pad->map, packet);
+ GST_DEBUG_OBJECT (ogg, "packet duration %" G_GUINT64_FORMAT, duration);
+ }
if (packet->b_o_s) {
out_timestamp = GST_CLOCK_TIME_NONE;