On 08/18/2013 05:57 PM, Luca Barbato wrote: > On 18/08/13 17:40, Jan Gerber wrote: >> + // Do not set incomplete for empty packets. >> + // Together with the code in ogg_read_page >> + // that discards all continuation of empty packets >> + // we would get an infinite loop. >> + os->incomplete = !!os->psize; > > Basically we set a packet as complete once we get an empty packet. > > Not sure if won't open us to different funny behaviours but looks safer > than keep eating packets till the end of time. > > Which is the semantic of empty packet in ogg though?
empty packets in theora are dropped frames. not sure about other codecs. >From http://xiph.org/vorbis/doc/framing.html Note also that a 'nil' (zero length) packet is not an error; it consists of nothing more than a lacing value of zero in the header. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
