Opened 14 years ago
Closed 13 years ago
#240 closed defect (fixed)
ffmpeg crashes when forced to decode wma9.1 lossless 6ch with wmav2 decoder
Reported by: | ami_stuff | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avcodec |
Version: | git-master | Keywords: | crash SIGSEGV wmav2 wmav1 |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
http://www.cccp-project.net/beta/test_files/%5BCCCP%5D_Mega_Weird_Audio_Test.mkv
(the crash also happens when I force ffmpeg to use wmav1 decoder)
C:\>ffmpeg -i C:\[CCCP]_Mega_Weird_Audio_Test.mkv ffmpeg version git-N-30155-g01a73d6, Copyright (c) 2000-2011 the FFmpeg develope rs built on May 23 2011 03:43:18 with gcc 4.5.3 configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable- runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm -- enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --pkg-config=pkg-confi g libavutil 51. 2. 1 / 51. 2. 1 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 10. 0 / 2. 10. 0 libswscale 0. 14. 0 / 0. 14. 0 libpostproc 51. 2. 0 / 51. 2. 0 [mpeg4 @ 02360980] Invalid and inefficient vfw-avi packed B frames detected [matroska,webm @ 02360280] max_analyze_duration 5000000 reached at 5130000 [matroska,webm @ 02360280] Estimating duration from bitrate, this may be inaccur ate 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: sipr, 16000 Hz, 1 channels, flt, 16 kb/s Metadata: title : ACELP Sipro Mono Audio Stream #0.6(jpn): Audio: adpcm_ms, 11025 Hz, 2 channels, s16, 88 kb/s Metadata: title : MS ADPCM 2ch Audio Stream #0.7(jpn): Audio: adpcm_ima_wav, 11025 Hz, 2 channels, s16, 88 kb/s Metadata: title : IMA ADPCM 2ch Audio Stream #0.8(jpn): Audio: adpcm_yamaha, 16000 Hz, 1 channels, s16, 64 kb/s Metadata: title : Yamaha ADPCM Mono Audio Stream #0.9(jpn): Audio: g726, 8000 Hz, 1 channels, s16, 32 kb/s Metadata: title : G.726 ADPCM Mono Audio Stream #0.10(jpn): Audio: pcm_mulaw, 8000 Hz, 2 channels, s16, 128 kb/s Metadata: title : ╬╝-Law 2ch Audio Stream #0.11(jpn): Audio: pcm_alaw, 8000 Hz, 2 channels, s16, 128 kb/s Metadata: title : A-Law 2ch Audio Stream #0.12(jpn): Audio: gsm_ms, 44100 Hz, 1 channels, s16, 71 kb/s Metadata: title : GSM 6.10 Mono Audio Stream #0.13(jpn): Audio: truespeech, 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: wmavoice, 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: wmapro, 48000 Hz, 5.1, flt, 192 kb/s Metadata: title : WMA9.1 Pro 6ch Audio Stream #0.19(jpn): Audio: wmapro, 48000 Hz, stereo, flt, 80 kb/s Metadata: title : WMA9.1 Pro 2ch Audio Stream #0.20(eng): Audio: wmapro, 48000 Hz, 5.1, flt, 192 kb/s Metadata: title : WMA10 Pro 6ch Audio Stream #0.21(jpn): Audio: wmapro, 48000 Hz, stereo, flt, 64 kb/s Metadata: title : WMA10 Pro 2ch Audio Stream #0.22(eng): Audio: c[1][0][0] / 0x0163, 48000 Hz, 6 channels, 1882 kb /s Metadata: title : WMA9.1 Lossless 6ch Audio Stream #0.23(jpn): Audio: c[1][0][0] / 0x0163, 48000 Hz, 2 channels, 774 kb/ s Metadata: title : WMA9.1 Lossless 2ch Audio Stream #0.24(jpn): Audio: cook, 44100 Hz, stereo, s16 Metadata: title : RA6 G2 Cook 2ch Audio Stream #0.25(jpn): Audio: atrac3, 44100 Hz, 2 channels, s16 Metadata: title : RA8 ATRC 2ch Audio Stream #0.26(eng): Audio: cook, 44100 Hz, 5.1, s16 Metadata: title : RA8 Cook 6ch Audio Stream #0.27(jpn): Audio: cook, 44100 Hz, stereo, s16 Metadata: title : RA8 Cook 2ch Audio Stream #0.28(jpn): Audio: cook, 44100 Hz, mono, s16 Metadata: title : RA8 Cook Mono Audio Stream #0.29(jpn): Audio: aac, 32000 Hz, stereo, s16 Metadata: title : RA10 RAAC 2ch Audio Stream #0.30(jpn): Audio: aac, 44100 Hz, stereo, s16 Metadata: title : RA10 RACP 2ch Audio At least one output file must be specified
C:\>ffmpeg -acodec wmav2 -i C:\[CCCP]_Mega_Weird_Audio_Test.mkv -map 0.22 out.wav ffmpeg version git-N-30155-g01a73d6, Copyright (c) 2000-2011 the FFmpeg develope rs built on May 23 2011 03:43:18 with gcc 4.5.3 configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable- runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm -- enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --pkg-config=pkg-confi g libavutil 51. 2. 1 / 51. 2. 1 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 10. 0 / 2. 10. 0 libswscale 0. 14. 0 / 0. 14. 0 libpostproc 51. 2. 0 / 51. 2. 0 [mpeg4 @ 02360980] Invalid and inefficient vfw-avi packed B frames detected [matroska,webm @ 02360280] Estimating duration from bitrate, this may be inaccur ate 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 Output #0, wav, to 'out.wav': Metadata: title : Macross Plus - First Simulator Test encoder : Lavf53.2.0 Stream #0.0(eng): Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s Metadata: title : WMA9.1 Lossless 6ch Audio Stream mapping: Stream #0.22 -> #0.0 Press [q] to stop, [?] for help C:\>
Attachments (1)
Change History (7)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
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)
comment:3 by , 13 years ago
Component: | undetermined → avcodec |
---|---|
Reproduced by developer: | set |
Status: | new → open |
Version: | unspecified → git-master |
(gdb) r -acodec wmav2 -i [CCCP]_Mega_Weird_Audio_Test.mkv -map 0.22 -vn -f null - Starting program: ffmpeg_g -acodec wmav2 -i [CCCP]_Mega_Weird_Audio_Test.mkv -map 0.22 -vn -f null - ffmpeg version N-30884-g54dd50d, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 21 2011 00:07:42 with gcc 4.5.3 configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc --disable-asm --disable-optimizations libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 0. 14. 1 / 0. 14. 1 [mpeg4 @ 0x135c3e0] Invalid and inefficient vfw-avi packed B frames detected [matroska,webm @ 0x1356350] Estimating duration from bitrate, this may be inaccurate Input #0, matroska,webm, from '[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.22(eng): Audio: wmav2, 48000 Hz, 6 channels, s16, 1882 kb/s Metadata: title : WMA9.1 Lossless 6ch Audio ... Output #0, null, to 'pipe:': Metadata: title : Macross Plus - First Simulator Test encoder : Lavf53.4.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 [q] to stop, [?] for help Program received signal SIGSEGV, Segmentation fault. 0x00000000005c2828 in vector_fmul_add_c (dst=0x15d4e10, src0=0x15d0bd0, src1=0x0, src2=0x15d4e10, len=2048) at libavcodec/dsputil.c:2495 2495 dst[i] = src0[i] * src1[i] + src2[i]; (gdb) bt #0 0x00000000005c2828 in vector_fmul_add_c (dst=0x15d4e10, src0=0x15d0bd0, src1=0x0, src2=0x15d4e10, len=2048) at libavcodec/dsputil.c:2495 #1 0x000000000086ea59 in wma_window (s=0x15c46d0, out=0x15d4e10) at libavcodec/wmadec.c:400 #2 0x0000000000870275 in wma_decode_block (s=0x15c46d0) at libavcodec/wmadec.c:762 #3 0x0000000000870342 in wma_decode_frame (s=0x15c46d0, samples=0x13fd530) at libavcodec/wmadec.c:788 #4 0x00000000008708bd in wma_decode_superframe (avctx=0x138e070, data=0x13fd530, data_size=0x7fffffffce2c, avpkt=0x7fffffffce30) at libavcodec/wmadec.c:908 #5 0x000000000080fb26 in avcodec_decode_audio3 (avctx=0x138e070, samples=0x13fd530, frame_size_ptr=0x7fffffffce2c, avpkt=0x7fffffffce30) at libavcodec/utils.c:796 #6 0x0000000000409b5c in output_packet (ist=0x159bd30, ist_index=22, ost_table=0x17d4fc0, nb_ostreams=1, pkt=0x7fffffffd190) at ffmpeg.c:1584 #7 0x000000000040e9f4 in transcode (output_files=0xdf3c80, nb_output_files=1, input_files=0x16aae90, nb_input_files=1, stream_maps=0x197a120, nb_stream_maps=1) at ffmpeg.c:2773 #8 0x00000000004134ad in main (argc=11, argv=0x7fffffffdda8) at ffmpeg.c:4571 (gdb) disass $pc-32 $pc+32 Dump of assembler code from 0x5c2808 to 0x5c2848: 0x00000000005c2808 <vector_fmul_add_c+46>: mov -0x4(%rbp),%edx 0x00000000005c280b <vector_fmul_add_c+49>: movslq %edx,%rdx 0x00000000005c280e <vector_fmul_add_c+52>: shl $0x2,%rdx 0x00000000005c2812 <vector_fmul_add_c+56>: add -0x20(%rbp),%rdx 0x00000000005c2816 <vector_fmul_add_c+60>: movss (%rdx),%xmm1 0x00000000005c281a <vector_fmul_add_c+64>: mov -0x4(%rbp),%edx 0x00000000005c281d <vector_fmul_add_c+67>: movslq %edx,%rdx 0x00000000005c2820 <vector_fmul_add_c+70>: shl $0x2,%rdx 0x00000000005c2824 <vector_fmul_add_c+74>: add -0x28(%rbp),%rdx 0x00000000005c2828 <vector_fmul_add_c+78>: movss (%rdx),%xmm0 0x00000000005c282c <vector_fmul_add_c+82>: mulss %xmm1,%xmm0 0x00000000005c2830 <vector_fmul_add_c+86>: mov -0x4(%rbp),%edx 0x00000000005c2833 <vector_fmul_add_c+89>: movslq %edx,%rdx 0x00000000005c2836 <vector_fmul_add_c+92>: shl $0x2,%rdx 0x00000000005c283a <vector_fmul_add_c+96>: add -0x30(%rbp),%rdx 0x00000000005c283e <vector_fmul_add_c+100>: movss (%rdx),%xmm1 0x00000000005c2842 <vector_fmul_add_c+104>: addss %xmm1,%xmm0 0x00000000005c2846 <vector_fmul_add_c+108>: movss %xmm0,(%rax) End of assembler dump. (gdb) info registers rax 0x15d4e10 22892048 rbx 0x15d0bd0 22875088 rcx 0x15d4e10 22892048 rdx 0x0 0 rsi 0x15d0bd0 22875088 rdi 0x15d4e10 22892048 rbp 0x7fffffffc900 0x7fffffffc900 rsp 0x7fffffffc900 0x7fffffffc900 r8 0x800 2048 r9 0x5c27da 6039514 r10 0x0 0 r11 0x7ffff6ae32c3 140737331999427 r12 0x405290 4215440 r13 0x7fffffffdda0 140737488346528 r14 0x0 0 r15 0x0 0 rip 0x5c2828 0x5c2828 <vector_fmul_add_c+78> eflags 0x10246 [ PF ZF IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 fctrl 0x37f 895 fstat 0x0 0 ftag 0xffff 65535 fiseg 0x0 0 fioff 0x0 0 foseg 0x0 0 fooff 0x0 0 fop 0x0 0 mxcsr 0x1fa0 [ PE IM DM ZM OM UM PM ]
comment:4 by , 13 years ago
Keywords: | crash SIGSEGV wmav2 wmav1 added |
---|
by , 13 years ago
comment:6 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
The patch looks good, ive applied something similar
Thanks!
Note:
See TracTickets
for help on using tickets.
If theres a crash, gdb output would be usefull