ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Wed Sep 2 20:54:42 2015 +0200| [5b6a50e15006d758ba308d5576a450406cd433f6] | committer: Michael Niedermayer
avcodec/mpegvideo_parser: Fix integer overflow Fixes: signal_sigabrt_7ffff6ac8cc9_686_cov_1897408623_microsoft_new_way_to_shove_mpeg2_in_asf.dvr_ms Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5b6a50e15006d758ba308d5576a450406cd433f6 --- libavcodec/mpegvideo_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/mpegvideo_parser.c b/libavcodec/mpegvideo_parser.c index f5ac63f..1f74bfb 100644 --- a/libavcodec/mpegvideo_parser.c +++ b/libavcodec/mpegvideo_parser.c @@ -159,11 +159,11 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s, av_log(avctx, AV_LOG_ERROR, "Failed to set dimensions\n"); if (avctx->codec_id == AV_CODEC_ID_MPEG2VIDEO && bit_rate) { - avctx->rc_max_rate = 400*bit_rate; + avctx->rc_max_rate = 400LL*bit_rate; } if (bit_rate && ((avctx->codec_id == AV_CODEC_ID_MPEG1VIDEO && bit_rate != 0x3FFFF) || vbv_delay != 0xFFFF)) { - avctx->bit_rate = 400*bit_rate; + avctx->bit_rate = 400LL*bit_rate; } if (pix_fmt != AV_PIX_FMT_NONE) { _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
