Bugs item #609048, was opened at 2002-09-13 21:12
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111050&aid=609048&group_id=11050
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Segfault IAviVideoWriteStream::addFrame
Initial Comment:
Hi
I'm writing an addin module for a Visualisation Program
which schould directly genreate AVI's from the scenen
schown on the screen.
When testin my module i get a segfault down in
AviVideoWriteStream::addFrame
holdframe is a QImage containing the imagedata in the right
size
frameheader=new BitmapInfo(outsize[0],outsize[1],bytes*8);
actualframe=new
CImage(frameheader,holdframe.bits(),true);
outstream->AddFrame(actualframe);
delete actualframe;
delete frameheader;
i get the following segfault
---------------------------------------------------------------------------------------
x(640/640)*y(409/409)*d(4/4)=(1047040/1047040)
x(640/640)*y(409/409)*d(4/4)=(1047040/1047040)
x(640/640)*y(409/409)*d(4/4)=(1047040/1047040)
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1026 (LWP 28352)]
0x41434587 in memcpy () from /lib/libc.so.6
(gdb) where
#0 0x41434587 in memcpy () from /lib/libc.so.6
#1 0x44688979 in avm::stride_memcpy (out=0x83d6948,
strideout=-3088, in=0x44bfc008,
stridein=2560, bpl=3088, h=793) at image.cpp:67
#2 0x4468bae0 in avm::CImage::Convert (this=0xbf7ff8f4,
from_img=0x81b7398) at image.cpp:1305
#3 0x445ec770 in avm::Unc_Encoder::EncodeFrame
(this=0x817c3b0, src=0x81b7398, dest=0x81817c8,
is_keyframe=0xbf7ff9ec, size=0xbf7ff9f0, lpckid=0x0) at
Uncompressed.cpp:137
#4 0x44686285 in avm::AviVideoWriteStream::AddFrame
(this=0x81b4980, chunk=0x81b7398, pSize=0x0,
pKeyframe=0x0, pData=0x0) at
AviVideoWriteStream.cpp:47
#5 0x44018dac in videoencoder::run (this=0x8188f58)
at
/home/nothere/daten/projekte/diplomarbeit/amira/packages/digicam/videoencoder.cpp:681
#6 0x44153cae in start_thread () from
/usr/lib/qt2/lib/libqt-mt.so.2
#7 0x449cdf37 in pthread_start_thread () from
/lib/libpthread.so.0
#8 0x449cdf8e in pthread_start_thread_event () from
/lib/libpthread.so.0
-----------------------------------------------------------------------------------------
simmular when dooing the memcpy myselve, which works
fine, and then setting the copysitxch in CImage Contructro to
false.
As image data is neither reset nor deleted until addFrame
returns, which i was told is after frame was sucessfully
added to the AVI this schould not be the problem .
The initialisation of the Encoder was done along the
avimake example from the sample directiory
my avifile version is
avifile0.7-0.7.13
is this allready fixed (updating to newer version helps?)
----------------------------------------------------------------------
Comment By: Christoph Hinterm�ller (nothere)
Date: 2002-10-16 19:46
Message:
Logged In: YES
user_id=513618
seems to be solved
might have been worng codec fourcc
and ommiting trailing 0 of an c string
and some other mistakes in coding :(
not the fault of avifile sorry for blaming
cu
christoph
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111050&aid=609048&group_id=11050
_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile