[Ffmpeg-devel] [PATCH] Fix infinite loop when decoding asf/wma packet

Patrice Bensoussan patrice.bensoussan
Tue Sep 26 01:34:12 CEST 2006

Well, it seems that when the first byte is not 0x82, we continue to  
decode the packet although I don't know what the implications are for  
decoding... According to the doc below, most packets are using v82  
header. So I guess we should do something else when it's not 82...  
but it's better to do nothing than actually doing something wrong.


The file showing the issue is definitely decoded with this fix. Do  
you have any ftp I can use to upload the file? (it's about 12mb).

On 26 Sep 2006, at 00:13, Michael Niedermayer wrote:

> Hi
> On Mon, Sep 25, 2006 at 11:42:38PM +0100, Patrice Bensoussan wrote:
>> Hello,
>> Here is a patch to fix a problem causing an infinite loop when
>> decoding some asf/wma files. Notice that the patch actually returns 0
>> rather than an error on purpose as the file showing the problem is
>> actually properly decoded when this happens (much better than having
>> the decoding/conversion stop when this happens).
> could you explain why this leads to a infinite loop? (i assume you  
> already
> know) and please upload a sample which needs this
> [...]
> -- 
> Michael     GnuPG fingerprint:  
> 9FF2128B147EF6730BADF133611EC787040B0FAB
> In the past you could go to a library and read, borrow or copy any  
> book
> Today you'd get arrested for mere telling someone where the library is
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel

More information about the ffmpeg-devel mailing list