[FFmpeg-trac] #8513(ffmpeg:new): Crash while converting into EAC3 with bitrate higher than 900 kbps: put_bits buffer too small

FFmpeg trac at avcodec.org
Fri Feb 7 17:31:34 EET 2020


#8513: Crash while converting into EAC3 with bitrate higher than 900 kbps:
put_bits buffer too small
-------------------------------------+-------------------------------------
             Reporter:  ackbc        |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:  4.2
             Keywords:  eac3, Lavf,  |               Blocked By:
  Lavc, libavcodec                   |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 EAC3 can go higher than normal AC3 but ffmpeg binary crashes, the upper
 limit now is around 900 kbps due to the buffer error

 How to reproduce:

 {{{ffmpeg -i 1.flac -c:a eac3 -b:a 1024k 007.ac3
 ffmpeg version git-2020-02-06-343ccfc Copyright (c) 2000-2020 the FFmpeg
 develop
 ers
   built with gcc 9.2.1 (GCC) 20200122
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
 fontconfi
 g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d
 --enable-libb
 luray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb
 --enab
 le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-
 libshine --e
 nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame
 --enable
 -libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
 libx265 -
 -enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
 --enab
 le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-
 libmysofa --en
 able-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-
 ffnvcode
 c --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-
 dxva2 -
 -enable-avisynth --enable-libopenmpt --enable-amf
   libavutil      56. 39.100 / 56. 39.100
   libavcodec     58. 68.100 / 58. 68.100
   libavformat    58. 38.100 / 58. 38.100
   libavdevice    58.  9.103 / 58.  9.103
   libavfilter     7. 74.100 /  7. 74.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Input #0, flac, from '1.flac':
   Metadata:
     VALID_BITS      : 24
     HDCD            : 0
   Duration: 02:36:17.02, start: 0.000000, bitrate: 2626 kb/s
     Stream #0:0: Audio: flac, 48000 Hz, 5.1(side), s32 (24 bit)
 Stream mapping:
   Stream #0:0 -> #0:0 (flac (native) -> eac3 (native))
 Press [q] to stop, [?] for help
 Output #0, ac3, to '007.ac3':
   Metadata:
     VALID_BITS      : 24
     HDCD            : 0
     encoder         : Lavf58.38.100
     Stream #0:0: Audio: eac3, 48000 Hz, 5.1(side), fltp (24 bit), 1024
 kb/s
     Metadata:
       encoder         : Lavc58.68.100 eac3
 '''Internal error, put_bits buffer too small
     Last message repeated 56 times
 Assertion s->buf_ptr < s->buf_end failed at
 src/libavcodec/put_bits.h:108'''

 This application has requested the Runtime to terminate it in an unusual
 way.
 Please contact the application's support team for more information.}}}

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


More information about the FFmpeg-trac mailing list