[FFmpeg-devel] [RFC] Negative Bitrate Assertion Error
David Czech
davidczech510
Sat Dec 18 20:58:59 CET 2010
>At least for the first one a division by 0 now becomes possible, the if
definitely must still catch the == 0 case.
How about <= 0? .. Actually ic->bit_rate starts at 0 in
lavformat/utils.c:1871, and st->codec->bit_rate was negative. So I added a
condition to add st->codec->bit_rate if it isn't negative.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bit_rate_2.patch
Type: text/x-patch
Size: 635 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101218/c0082a34/attachment.bin>
More information about the ffmpeg-devel
mailing list