[FFmpeg-trac] #8191(undetermined:new): Division by zero at libavcodec/svq1enc.c

FFmpeg trac at avcodec.org
Sun Sep 22 19:13:49 EEST 2019

#8191: Division by zero at libavcodec/svq1enc.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:
 There is division by zero at libavcodec/svq1enc.c
 libavcodec/svq1enc.c:490:24: runtime error: division by zero
 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
 libavcodec/svq1enc.c:490:24 in

 How to reproduce:
 % ./ffmpeg_g -t 2 -stream_loop 4 -y -i vp80-05-sharpness-1439.webp -target
 dv50 -loglevel 0 -map 0 -c copy -c:v:211 vp8_v4l2m2m -c:v:0 svq1 -vframes
 82 -aframes 98 -r 20 -ab 841k -ar 48000 -ac 9 tmp.g729

 ffmpeg version N-94982-gea673a0edb Copyright (c) 2000-2019 the FFmpeg
   built with clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
   configuration: --cc=clang --cxx=clang++ --ld=clang --enable-debug

Ticket URL: <https://trac.ffmpeg.org/ticket/8191>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list