[FFmpeg-devel] [PATCH] asfdec: division by 0 on missing packet size

Reimar Döffinger Reimar.Doeffinger
Thu Jul 2 15:24:30 CEST 2009


On Thu, Jul 02, 2009 at 02:55:56PM +0200, Michael Niedermayer wrote:
> On Thu, Jul 02, 2009 at 02:35:44PM +0200, Reimar D?ffinger wrote:
> > Hello,
> > AFAICT there is no way to demux ASF without knowing the packet size,
> > thus read_header should already fail instead of crashing at read_packet
> > when we try to calulate modulus the packet size.
> 
> hmm, the packet size should not be essential for demuxing, have you tried
> to hack the % with something silly?

Actually demuxing can't work without it, since the ASF file does not have to
explicitly code that packet_length, it can instead specify that packet_size
should be used, which then breaks the whole code.
It might be possible to still support such files, but I think that would be
more of a rewrite of the ASF demuxer.



More information about the ffmpeg-devel mailing list