ffmpeg2theora segfaults on images with different size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ffmpeg2theora |
New
|
Undecided
|
Unassigned |
Bug Description
In ffmpeg2theora-0.28 (as packaged by packman for openSUSE-11.4) I get a reproducible segfault in certain constellations with input images of different size. E.g. a single 720x400 image in a run of 800x600 images.
The same was already observed on ffmpeg2theora-0.27.
gdb ffmpeg2theora
run --inputfps 12 ppmtompg.
Input #0, image2, from 'ppmtompg.
Duration: 00:02:25.68, start: 0.000000, bitrate: N/A
Stream #0.0: Video: ppm, rgb24, 800x600, 25 fps, 25 tbr, 25 tbn, 25 tbc
Resample Framerate: 12.000 => 25.000
0:00:36.24 audio: 0kbps video: 1281kbps, ET: 00:02:21, est. size: 22.2 MB
Program received signal SIGSEGV, Segmentation fault.
rgb24ToUV_half_c (dstU=0x638180, dstV=0x6384f0, src1=<value optimized out>,
src2=<value optimized out>, width=<value optimized out>,
unused=<value optimized out>) at libswscale/
(gdb) bt
#0 rgb24ToUV_half_c (dstU=0x638180, dstV=0x6384f0,
src1=<value optimized out>, src2=<value optimized out>,
width=<value optimized out>, unused=<value optimized out>)
at libswscale/
#1 0x00007ffff5bff9cc in hcscale (c=0x639a40, src=0x7fffffffc6a0,
srcStride=
srcSliceH=
dstStride=
#2 swScale (c=0x639a40, src=0x7fffffffc6a0, srcStride=
srcSliceY=
dst=
#3 0x00007ffff5c060c9 in sws_scale (c=0x639a40, src=0x636580,
srcStride=
dstStride=
#4 0x0000000000409223 in ff2theora_output ()
#5 0x000000000040c91d in main ()