[FFmpeg-devel] [libav-devel] [PATCH] riffdec: error out on negative bit rate

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sat Jul 11 17:22:16 CEST 2015


On 11.07.2015 11:44, Luca Barbato wrote:
> On 11/07/15 01:26, Andreas Cadhalpun wrote:
>> Note however that the explode mode doesn't necessarily work, because e.g.
>> the avi demuxer doesn't set err_recognition for the AVCodecContext.
> 
> It wouldn't work as intended, setting the bit_rate to 0 thought, does
> prevent an issue with g726 but probably that chunk of code could be removed.
> 
> Some patches following...

After your riff patch, it is possible to the the explode mode working.
Updated patch attached.

Best regards,
Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-riffdec-prevent-negative-bit-rate.patch
Type: text/x-diff
Size: 1106 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150711/74c752ee/attachment.patch>


More information about the ffmpeg-devel mailing list