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

Reimar Döffinger Reimar.Doeffinger
Thu Jul 2 15:06:27 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?

Yes, I tried. Using the correct value for the % is not enough, though setting packet
size to the correct value there fixes it.
Obviously there is some other use of packet size that is essential, I have
not found it in a quick search though.
(Of course this assumes I did not mess up my testing again).



More information about the ffmpeg-devel mailing list