Re: rc3 - yuvscaler crash with -M BICUBIC

"Steven M. Schultz" <[email protected]> Fri, 7 Dec 2007 22:08:14 -0800 (PST)
Newsgroups gmane.comp.video.mjpeg.devel
Message-ID <[email protected]>
On Thu, 6 Dec 2007, herve.flores wrote:

> Hi this bug is not specific to rc3 (same behavior for rc2, I didn't =20
> test earlier versions)
> 
> seems to occurs with -M BICUBIC ...
	...
>     INFO: [yuvscaler] MMX accelerated treatment activated
> YUV4MPEG2 W720 H576 F25:1 Ib A64:45 C420mpeg2 XYSCSS=3D420MPEG2
>     INFO: [yuvscaler] output:   frame size:  720x576 pixels (622080 =20
> bytes)
>     INFO: [yuvscaler] output:       chroma:  4:2:0 MPEG-2 (horiz. =20
> cositing)
>     INFO: [yuvscaler] output:   frame rate:  25/1 fps (~25.000000)
>     INFO: [yuvscaler] output:    interlace:  bottom-field-first
>     INFO: [yuvscaler] output: sample aspect ratio:  64:45
>     INFO: [yuvscaler] Frame number 0
> FRAME
> [h264 @ 0x5c8790]AVC: Consumed only 11410 bytes instead of 11420
> [h264 @ 0x5c8790]AVC: nal size 0
> [h264 @ 0x5c8790]AVC: Consumed only 58093 bytes instead of 58108
> [h264 @ 0x5c8790]AVC: nal size 0
> Segmentation fault

	I have checked in a "workaround" to the problem and yuvscaler no
	longer crashes on OSX 10.5.1 on a MacBookPro.  I am not, however,
	100% certain the fix is the best one but it's the best I can do.

	An intermdiate buffer was apparently being overrun.  I am not sure
	if there is a flaw in the logic of the program or the buffer was too
	small.  I increased the size of the buffer and the crash no longer
	happens.

	Cheers,
	Steven Schultz


-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php