[Ffmpeg-devel] [bug] wmav2 Encoder Abort Trap

Tyler Loch tylerl82
Tue Feb 6 22:32:12 CET 2007


When converting some audio to wmav2 (which is great...thank you!) on  
Mac OS X i386 (I haven't tested other systems yet), ffmpeg may abort  
with the following error:
wmaenc.c:374: failed assertion `i>=0'

It only seems to affect some files, and others only when resampling.
Attached is a gdb backtrace from a fresh SVN build:


carl:~/ffmpegpb/norm/ffmpeg tylerl$ gdb ./ffmpeg_g
GNU gdb 6.3.50-20050815 (Apple version gdb-573) (Fri Oct 20 15:50:43  
GMT 2006)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and  
you are
welcome to change it and/or distribute copies of it under certain  
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for  
details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for  
shared libraries ... done

(gdb) run -i /Users/tylerl/Desktop/ed.avi -vcodec wmv2 -acodec wmav2 - 
g 60 -ar 48000 -ab 128 -ac 2 ~/Desktop/baded.wmv
Starting program: /Users/tylerl/ffmpegpb/norm/ffmpeg/ffmpeg_g -i / 
Users/tylerl/Desktop/ed.avi -vcodec wmv2 -acodec wmav2 -g 60 -ar  
48000 -ab 128 -ac 2 ~/Desktop/baded.wmv
Reading symbols for shared libraries .. done
FFmpeg version SVN-r7856, Copyright (c) 2000-2006 Fabrice Bellard, et  
al.
   configuration:
   libavutil version: 49.3.0
   libavcodec version: 51.32.0
   libavformat version: 51.8.0
   built on Feb  6 2007 15:21:48, gcc: 4.0.1 (Apple Computer, Inc.  
build 5367)
Input #0, avi, from '/Users/tylerl/Desktop/ed.avi':
   Duration: 00:00:51.9, start: 0.000000, bitrate: 422 kb/s
   Stream #0.0: Video: mpeg4, yuv420p, 320x176, 30.00 fps(r)
   Stream #0.1: Audio: mp2, 48000 Hz, stereo, 128 kb/s
Output #0, asf, to '/Users/tylerl/Desktop/baded.wmv':
   Stream #0.0: Video: wmv2, yuv420p, 320x176, q=2-31, 200 kb/s,  
30.00 fps(c)
   Stream #0.1: Audio: wmav2, 48000 Hz, stereo, 128 kb/s
Stream mapping:
   Stream #0.0 -> #0.0
   Stream #0.1 -> #0.1
Press [q] to stop encoding
wmaenc.c:374: failed assertion `i>=0'

Program received signal SIGABRT, Aborted.
0x9003d1dc in kill ()
(gdb) bt
#0  0x9003d1dc in kill ()
#1  0x9010f2af in raise ()
#2  0x9010de02 in abort ()
#3  0x00314cd3 in __eprintf ()
#4  0x001f5dfd in encode_superframe (avctx=Cannot access memory at  
address 0xb0
) at wmaenc.c:374
Cannot access memory at address 0x40
Previous frame inner to this frame (corrupt stack?)






-Tyler Loch
Techspansion LLC
http://www.techspansion.com






More information about the ffmpeg-devel mailing list