[FFmpeg-trac] #8201(undetermined:new): outside the range of int at libavcodec/mpegvideo_enc.c
FFmpeg
trac at avcodec.org
Wed Sep 25 17:15:11 EEST 2019
#8201: outside the range of int at libavcodec/mpegvideo_enc.c
-------------------------------------+-------------------------------------
Reporter: Suhwan | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: ubsan | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
{{{
libavcodec/mpegvideo_enc.c:497:37: runtime error: 1.66789e+11 is outside
the range of representable values of type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
libavcodec/mpegvideo_enc.c:497:37 in
#0 ff_mpv_encode_init (avctx=<optimized out>) at
libavcodec/mpegvideo_enc.c:494
#1 0x0000000005090e4e in avcodec_open2 (avctx=<optimized out>,
codec=0x9ffc7c0 <ff_flv_encoder>, options=0x616000018de0)
at libavcodec/utils.c:935
#2 0x000000000061c78c in init_output_stream (ost=<optimized out>,
error=<optimized out>, error_len=1024) at fftools/ffmpeg.c:3517
#3 0x00000000006552db in reap_filters (flush=0) at fftools/ffmpeg.c:1442
#4 0x00000000005e7433 in transcode_step () at fftools/ffmpeg.c:4648
#5 transcode () at fftools/ffmpeg.c:4692
#6 0x00000000005db6ec in main (argc=<optimized out>, argv=<optimized
out>)
at fftools/ffmpeg.c:4894
}}}
How to reproduce:
{{{
% ./ffmpeg_g -t 1 -stream_loop 25 -y -i ffrv20-crashing-atmos.rm -loglevel
0 -map 0 -c:a:113 a64multi5 -vframes 99 -b:v 509k -strict 1 tmp.flv
ffmpeg version N-94982-gea673a0edb Copyright (c) 2000-2019 the FFmpeg
developers
built with clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
configuration: --cc=clang --cxx=clang++ --ld=clang --enable-debug
--toolchain=clang-usan
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8201>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list