Zach O. <[email protected]> added the comment:

Here is the stack trace. Note that I rebuilt ffmpeg with 
debugging turned on and optimizations, and asm turned 
off. Also, this was built from the latest source and I 
renamed the attached images so I could use img%d.bmp on 
the command line just to make it easier to type:

$ gdb ffmpeg.exe
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 d:\tecdev\ffmpeg-
latest\binaries\bin/ffmpeg.exe...done.
(gdb) run -f image2 -i D:\tecdev\ffmpeg-
latest\binaries\bin\img%d.bmp -y output.mp4
Starting program: d:\tecdev\ffmpeg-
latest\binaries\bin/ffmpeg.exe -f image2 -i 
D:\tecdev\ffmpeg-latest\binaries\bin\img%d.bmp -y output
.mp4
[New Thread 5516.0x1be8]
FFmpeg version git-svn-r25769, Copyright (c) 2000-2010 
the FFmpeg developers
  built on Nov 19 2010 12:41:42 with gcc 4.5.0
  configuration: --prefix=/d/tecdev/ffmpeg-
latest/binaries --enable-memalign-hack --enable-debug=3 -
-disable-optimizations --disable-st
ripping --disable-asm
  libavutil     50.33. 0 / 50.33. 0
  libavcore      0.13. 0 /  0.13. 0
  libavcodec    52.96. 0 / 52.96. 0
  libavformat   52.84. 0 / 52.84. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.62. 0 /  1.62. 0
  libswscale     0.12. 0 /  0.12. 0
Input #0, image2, from 'D:\tecdev\ffmpeg-
latest\binaries\bin\img%d.bmp':
  Duration: 00:00:00.20, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: bmp, bgr24, 879x781, 25 fps, 25 
tbr, 25 tbn, 25 tbc
[buffer @ 051f2a70] w:879 h:781 pixfmt:bgr24
[ffsink @ 051f2cb0] auto-inserting filter 'auto-inserted 
scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0039eba0] w:879 h:781 fmt:bgr24 -> w:879 h:781 
fmt:yuv420p flags:0x4
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf52.84.0
    Stream #0.0: Video: mpeg4, yuv420p, 879x781, q=2-31, 
200 kb/s, 25 tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding

Program received signal SIGSEGV, Segmentation fault.
0x007b9bc9 in rgb24toyv12_C (src=0x8297640 "", 
ydst=0x7617ce0 '\020' <repeats 200 times>...,
    udst=0x7642760 '\200' <repeats 200 times>..., 
vdst=0x766d3a0 '\200' <repeats 200 times>..., width=879, 
height=781,
    lumStride=880, chromStride=448, srcStride=2640) at 
libswscale/rgb2rgb_template.c:2268
2268                unsigned int b = src[6*i+0];
(gdb) where
#0  0x007b9bc9 in rgb24toyv12_C (src=0x8297640 "", 
ydst=0x7617ce0 '\020' <repeats 200 times>...,
    udst=0x7642760 '\200' <repeats 200 times>..., 
vdst=0x766d3a0 '\200' <repeats 200 times>..., width=879, 
height=781,
    lumStride=880, chromStride=448, srcStride=2640) at 
libswscale/rgb2rgb_template.c:2268
#1  0x007b6964 in bgr24ToYv12Wrapper (c=0x51f2ed0, 
src=0x27ef00, srcStride=0x27eee0, srcSliceY=0, 
srcSliceH=781, dst=0x27eef0,
    dstStride=0x27eed0) at libswscale/swscale.c:1616
#2  0x007b8745 in sws_scale (c=0x51f2ed0, src=0x27ef74, 
srcStride=0x5286644, srcSliceY=0, srcSliceH=781, 
dst=0x5286774,
    dstStride=0x5286794) at libswscale/swscale.c:1999
#3  0x004190d1 in draw_slice (link=0x51f2e50, y=0, 
h=781, slice_dir=1) at libavfilter/vf_scale.c:187
#4  0x00412806 in avfilter_draw_slice (link=0x51f2e50, 
y=0, h=781, slice_dir=1) at libavfilter/avfilter.c:402
#5  0x00413d72 in request_frame (link=0x51f2e50) at 
libavfilter/vsrc_buffer.c:134
#6  0x00412389 in avfilter_request_frame 
(link=0x51f2e50) at libavfilter/avfilter.c:293
#7  0x004123ab in avfilter_request_frame (link=0x39ed90) 
at libavfilter/avfilter.c:295
#8  0x0040fecd in get_filtered_video_frame 
(ctx=0x51f2cb0, frame=0x27f2c8, picref_ptr=0x39eb14, 
tb=0x27f254) at cmdutils.c:826
#9  0x00405831 in output_packet (ist=0x39eaa0, 
ist_index=0, ost_table=0x39eb40, nb_ostreams=1, 
pkt=0x27f508) at ffmpeg.c:1626
#10 0x004095fa in transcode (output_files=0x91b840, 
nb_output_files=1, input_files=0x91b040, 
nb_input_files=1, stream_maps=0x0,
    nb_stream_maps=0) at ffmpeg.c:2617
#11 0x0040db34 in main (argc=7, argv=0x3939b0) at 
ffmpeg.c:4306
(gdb) print i
$1 = 416
(gdb)

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2366>
________________________________________________

Reply via email to