[FFmpeg-devel] [PATCH] avidec: check for valid bit_rate range
Michael Niedermayer
michaelni at gmx.at
Mon May 4 21:38:20 CEST 2015
On Mon, May 04, 2015 at 09:07:52PM +0200, Andreas Cadhalpun wrote:
> If bit_rate is negative, it can trigger an av_assert2 in av_rescale_rnd.
>
> Since av_rescale returns int64_t, but st->codec_bit_rate is int, it can
> also overflow into a negative value.
>
> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> ---
> libavformat/avidec.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
applied
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Those who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150504/c7a15632/attachment.asc>
More information about the ffmpeg-devel
mailing list