[vlc-devel] Matroska, libopus and loophole in the spec

Denis Charmet typx at dinauz.org
Tue Nov 5 10:01:14 CET 2013


Hi,

Le lundi 04 novembre 2013 à 06:46:39, Timothy B. Terriberry a écrit :
> You can just look at the start of the packet to figure out what its
> duration is. See opus_packet_get_nb_frames() and
> opus_packet_get_samples_per_frame(). The duration of the packet is
> the product of these two, but make sure to check the return from
> opus_packet_get_nb_frames() for errors.

So this should be done in the decoder if no duration is provided by the
demux. I'll try that.

Regards,

-- 
Denis Charmet - TypX
Le mauvais esprit est un art de vivre



More information about the vlc-devel mailing list