Re: rc3 - yuvscaler crash with -M BICUBIC

"[email protected]" <[email protected]> Tue, 11 Dec 2007 15:52:56 +0100
Newsgroups gmane.comp.video.mjpeg.devel
Message-ID <[email protected]>
Le 11 déc. 07 à 15:00, Steven M. Schultz a écrit :

>
> On Tue, 11 Dec 2007, [email protected] wrote:
>
>> Hi I'm currently on MacOS 10.4.11 intel
>> whitout any patch (RC3), there is no crash  with bicubic and
>> yuvscaler in MacOS <10.5
>>
>> Where can I have your patch to compile and test it on 10.4.11?
>
>
> 	OR since it is such an extremely simple patch you can change line
> 	1675 of yuvscaler.c from this:
>
>        if (!(intermediate = (int32_t *) malloc(output_active_width* 
> (input_useful_height + height_neighbors)*sizeof(int32_t))))
>
>        to this
>
>        if (!(intermediate = (int32_t *) malloc(output_active_width* 
> (input_useful_height + height_neighbors+1)*sizeof(int32_t))))

OK:
cd / make clean / make distclean / ./configure --enable-static -- 
disable-shared
=> no crash with the patched version of yuvvscaler.c in mac 10.4.11  
intel

Command line:
ffmpeg -i /Volumes/Video_4H/Video_5H/_FICHIERS_A_PROBLEME/SANY0003- 
PAL-60fps.mpg -f yuv4mpegpipe - | yuvscaler -M BICUBIC -O  
SIZE_720x576 >/dev/null

Verbose:
[...]
    INFO: [yuvscaler] yuvscaler 1.9.0 (15-02-2004) is a general  
scaling utility for yuv frames
    INFO: [yuvscaler] (C) 2001-2004 Xavier Biquard  
<[email protected]>, yuvscaler -h for help, or man yuvscaler
[...]
   INFO: [yuvscaler] input:   frame size:  720x576 pixels (622080 bytes)
    INFO: [yuvscaler] input:       chroma:  4:2:0 MPEG-2 (horiz.  
cositing)
    INFO: [yuvscaler] input:   frame rate:  25/1 fps (~25.000000)
    INFO: [yuvscaler] input:    interlace:  bottom-field-first
    INFO: [yuvscaler] input: sample aspect ratio:  64:45
    INFO: [yuvscaler] from 720x576, take 720x576+0+0,  
INTERLACED_BOTTOM_FIRST
    INFO: [yuvscaler] scale to 720x576, 720x576 being displayed
    INFO: [yuvscaler] Scaling uses the BICUBIC algorithm,
    INFO: [yuvscaler] frame rate: 25.000 fps
    INFO: [yuvscaler] Scaling ratio for width is 1 to 1
    INFO: [yuvscaler] and is 1 to 1 for height
    INFO: [yuvscaler] Specific downscaling routing number 4
    INFO: [yuvscaler] output:   frame size:  720x576 pixels (622080  
bytes)
    INFO: [yuvscaler] output:       chroma:  4:2:0 MPEG-2 (horiz.  
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
    INFO: [yuvscaler] Frame number 1
    INFO: [yuvscaler] Frame number 2
    INFO: [yuvscaler] Frame number 3
    INFO: [yuvscaler] Frame number 4
    INFO: [yuvscaler] Frame number 5
    INFO: [yuvscaler] Frame number 6
    INFO: [yuvscaler] Frame number 7
[...]

still no crash with the patched version :-)
bye

herve
-------------------------------------------------------------------------
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