[FFmpeg-trac] #240(undetermined:new): ffmpeg crashes when forced to decode wma9.1 lossless 6ch with wmav2 decoder

FFmpeg trac at avcodec.org
Mon Jun 20 22:17:20 CEST 2011


#240: ffmpeg crashes when forced to decode wma9.1 lossless 6ch with wmav2 decoder
------------------------+---------------------------
Reporter:  ami_stuff    |       Owner:
    Type:  defect       |      Status:  new
Priority:  normal       |   Component:  undetermined
 Version:  unspecified  |  Resolution:
Keywords:               |  Blocked By:
Blocking:               |  Reproduced:  0
Analyzed:  0            |
------------------------+---------------------------

Comment (by ami_stuff):

 This output comes from libav debug build (sorry, I have no debug ffmpeg
 x86 bin to test):

 {{{
 C:\>H:\MinGW\bin\gdb.exe ffmpeg
 GNU gdb (GDB) 7.2
 Copyright (C) 2010 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "mingw32".
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>...
 Reading symbols from C:\ffmpeg.exe...done.
 (gdb) r -acodec wmav2 -i C:\[CCCP]_Mega_Weird_Audio_Test.mkv -map 0.22
 out.wav
 Starting program: C:\ffmpeg.exe -acodec wmav2 -i
 C:\[CCCP]_Mega_Weird_Audio_Test
 .mkv -map 0.22 out.wav
 [New Thread 376.0xa18]
 ffmpeg version v0.7rc1-50-g8d3d343, Copyright (c) 2000-2011 the Libav
 developers

   built on Jun 20 2011 02:33:30 with gcc 4.5.0 20100414 (Fedora MinGW
 4.5.0-1.fc
 14)
   configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build
 --arch=
 x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686
 -pc-min
 gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-
 cpudetect
 --enable-cross-compile --enable-static --disable-shared --extra-
 libs='-lws2_32 -
 lwinmm' --extra-cflags='--static
 -I/var/www/users/research/ffmpeg/snapshots/buil
 d/include' --extra-ldflags='-static
 -L/var/www/users/research/ffmpeg/snapshots/b
 uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3
 --enable-n
 onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-
 libvorbis
 --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-
 libopencor
 e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
   libavutil    51.  7. 0 / 51.  7. 0
   libavcodec   53.  5. 0 / 53.  5. 0
   libavformat  53.  2. 0 / 53.  2. 0
   libavdevice  53.  0. 0 / 53.  0. 0
   libavfilter   2.  4. 0 /  2.  4. 0
   libswscale    1.  1. 0 /  1.  1. 0
   libpostproc  52.  0. 0 / 52.  0. 0
 [mpeg4 @ 0x3e22660] Invalid and inefficient vfw-avi packed B frames
 detected
 [matroska,webm @ 0x3899620] Estimating duration from bitrate, this may be
 inaccu
 rate
 Input #0, matroska,webm, from 'C:\[CCCP]_Mega_Weird_Audio_Test.mkv':
   Metadata:
     title           : Macross Plus - First Simulator Test
   Duration: 00:01:03.70, start: 0.000000, bitrate: 5050 kb/s
     Stream #0.0(eng): Video: mpeg4, yuv420p, 656x464 [PAR 1:1 DAR 41:29],
 PAR 11
 6:123 DAR 4:3, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
     Metadata:
       title           : Macross Plus - First Simulator Test
     Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s (default)
     Metadata:
       title           : AC3 6ch Audio
     Stream #0.2(jpn): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
     Metadata:
       title           : AC3 2ch Audio
     Stream #0.3(eng): Audio: mp3, 48000 Hz, stereo, s16, 192 kb/s
     Metadata:
       title           : AudX HGHQ 6ch Audio
     Stream #0.4(eng): Audio: mp3, 48000 Hz, mono, s16, 192 kb/s
     Metadata:
       title           : AudX SPBQ 6ch Audio
     Stream #0.5(jpn): Audio: wmav2, 16000 Hz, 1 channels, flt, 16 kb/s
     Metadata:
       title           : ACELP Sipro Mono Audio
     Stream #0.6(jpn): Audio: wmav2, 11025 Hz, 2 channels, s16, 90 kb/s
     Metadata:
       title           : MS ADPCM 2ch Audio
     Stream #0.7(jpn): Audio: wmav2, 11025 Hz, 2 channels, s16, 89 kb/s
     Metadata:
       title           : IMA ADPCM 2ch Audio
     Stream #0.8(jpn): Audio: wmav2, 16000 Hz, 1 channels, s16, 64 kb/s
     Metadata:
       title           : Yamaha ADPCM Mono Audio
     Stream #0.9(jpn): Audio: wmav2, 8000 Hz, 1 channels, s16, 32 kb/s
     Metadata:
       title           : G.726 ADPCM Mono Audio
     Stream #0.10(jpn): Audio: wmav2, 8000 Hz, 2 channels, s16, 128 kb/s
     Metadata:
       title           : ╬╝-Law 2ch Audio
     Stream #0.11(jpn): Audio: wmav2, 8000 Hz, 2 channels, s16, 128 kb/s
     Metadata:
       title           : A-Law 2ch Audio
     Stream #0.12(jpn): Audio: wmav2, 44100 Hz, 1 channels, s16, 71 kb/s
     Metadata:
       title           : GSM 6.10 Mono Audio
     Stream #0.13(jpn): Audio: wmav2, 8000 Hz, 1 channels, s16, 8 kb/s
     Metadata:
       title           : TrueSpeech Mono Audio
     Stream #0.14(jpn): Audio: wmav2, 44100 Hz, 2 channels, s16, 64 kb/s
     Metadata:
       title           : WMA7 2ch Audio
     Stream #0.15(jpn): Audio: wmav2, 44100 Hz, 2 channels, s16, 64 kb/s
     Metadata:
       title           : WMA8 2ch Audio
     Stream #0.16(jpn): Audio: wmav2, 22050 Hz, 1 channels, flt, 20 kb/s
     Metadata:
       title           : WMA9 Voice Mono Audio
     Stream #0.17(jpn): Audio: wmav2, 48000 Hz, 2 channels, s16, 64 kb/s
     Metadata:
       title           : WMA9.2 Std 2ch Audio
     Stream #0.18(eng): Audio: wmav2, 48000 Hz, 5.1, flt, 192 kb/s
     Metadata:
       title           : WMA9.1 Pro 6ch Audio
     Stream #0.19(jpn): Audio: wmav2, 48000 Hz, stereo, flt, 80 kb/s
     Metadata:
       title           : WMA9.1 Pro 2ch Audio
     Stream #0.20(eng): Audio: wmav2, 48000 Hz, 5.1, flt, 192 kb/s
     Metadata:
       title           : WMA10 Pro 6ch Audio
     Stream #0.21(jpn): Audio: wmav2, 48000 Hz, stereo, flt, 64 kb/s
     Metadata:
       title           : WMA10 Pro 2ch Audio
     Stream #0.22(eng): Audio: wmav2, 48000 Hz, 6 channels, s16, 1882 kb/s
     Metadata:
       title           : WMA9.1 Lossless 6ch Audio
     Stream #0.23(jpn): Audio: wmav2, 48000 Hz, 2 channels, s16, 774 kb/s
     Metadata:
       title           : WMA9.1 Lossless 2ch Audio
     Stream #0.24(jpn): Audio: wmav2, 44100 Hz, stereo, s16
     Metadata:
       title           : RA6 G2 Cook 2ch Audio
     Stream #0.25(jpn): Audio: wmav2, 44100 Hz, 2 channels, s16
     Metadata:
       title           : RA8 ATRC 2ch Audio
     Stream #0.26(eng): Audio: wmav2, 44100 Hz, 5.1, s16
     Metadata:
       title           : RA8 Cook 6ch Audio
     Stream #0.27(jpn): Audio: wmav2, 44100 Hz, stereo, s16
     Metadata:
       title           : RA8 Cook 2ch Audio
     Stream #0.28(jpn): Audio: wmav2, 44100 Hz, mono, s16
     Metadata:
       title           : RA8 Cook Mono Audio
     Stream #0.29(jpn): Audio: wmav2, 32000 Hz, stereo, s16
     Metadata:
       title           : RA10 RAAC 2ch Audio
     Stream #0.30(jpn): Audio: wmav2, 44100 Hz, stereo, s16
     Metadata:
       title           : RA10 RACP 2ch Audio
 [pcm_s16le @ 0x3e52020] The requested thread algorithm is not supported
 with thi
 s thread library.
 Output #0, wav, to 'out.wav':
   Metadata:
     title           : Macross Plus - First Simulator Test
     encoder         : Lavf53.2.0
     Stream #0.0(eng): Audio: pcm_s16le, 48000 Hz, 6 channels, s16, 4608
 kb/s
     Metadata:
       title           : WMA9.1 Lossless 6ch Audio
 Stream mapping:
   Stream #0.22 -> #0.0
 Press ctrl-c to stop encoding

 Program received signal SIGSEGV, Segmentation fault.
 0x00788bce in vector_fmul_add_3dnow (dst=0x3eb3280, src0=0x3eaf120,
 src1=0x0,
     src2=0x3eb3280, len=2048) at libavcodec/x86/dsputil_mmx.c:2258
 2258    libavcodec/x86/dsputil_mmx.c: No such file or directory.
         in libavcodec/x86/dsputil_mmx.c
 (gdb) bt
 #0  0x00788bce in vector_fmul_add_3dnow (dst=0x3eb3280, src0=0x3eaf120,
     src1=0x0, src2=0x3eb3280, len=2048) at
 libavcodec/x86/dsputil_mmx.c:2258
 #1  0x00722f52 in wma_window (s=<value optimized out>)
     at libavcodec/wmadec.c:393
 #2  wma_decode_block (s=<value optimized out>) at libavcodec/wmadec.c:750
 #3  0x0072453d in wma_decode_frame (avctx=0x3e3a840, data=0x43acaa0,
     data_size=0x22f0d8, avpkt=0x22efe0) at libavcodec/wmadec.c:776
 #4  wma_decode_superframe (avctx=0x3e3a840, data=0x43acaa0,
     data_size=0x22f0d8, avpkt=0x22efe0) at libavcodec/wmadec.c:896
 #5  0x004e1d60 in avcodec_decode_audio3 (avctx=0x3e3a840,
 samples=0x43acaa0,
     frame_size_ptr=0x22f0d8, avpkt=0x22efe0) at libavcodec/utils.c:722
 #6  0x00405917 in output_packet (ist=0x459f400, ist_index=22,
     ost_table=0x3917c80, nb_ostreams=1, pkt=0x22f1e8) at ffmpeg.c:1534
 #7  0x004084f1 in transcode (nb_output_files=1, input_files=0x3917700,
     nb_input_files=1, stream_maps=0x3917720, nb_stream_maps=1,
     output_files=0xf04040) at ffmpeg.c:2650
 #8  0x0040d8b5 in main (argc=0, argv=0x0) at ffmpeg.c:4461
 (gdb)
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/240#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list