[Ffmpeg-devel] [BUG] Interlaced DCT Compare Crashing

Brian Brice bbrice
Tue Nov 21 19:05:06 CET 2006


Michael Niedermayer wrote:
> Hi
> 
> On Mon, Nov 20, 2006 at 08:32:12PM -0600, Brian Brice wrote:
>> Hello.
>>
>> I am testing alternative interlaced DCT compare functions and I seem to
>> be running into problems.  This is the command line I am using:
>>
>> ./ffmpeg-nt -i ShortDV.avi -f vob -vcodec mpeg2video -b 7M -minrate 7M
>> -maxrate 7M -bufsize 224KiB -g 12 -bf 2 -s ntsc -r ntsc -acodec mp2 -ab
>> 128K -ar 48000 -flags ildct -v 0 -ildctcmp sad -y out.mpg
>>
>> Setting ildctcmp to {sad,sse,rd,dct,nsse,dctmax,chroma} seems to cause a
>> crash within ffmpeg.  I've narrowed it down to the point it crashes, and
>> it seems to be due to dereferencing a NULL pointer.  Based on current
>> SVN, this occurs in libavcodec/mpegvideo.c, line 4387.  From what I can
>> tell, these types of ildctcmp functions do not fill in the 5th element
>> of their cmp_func array in dsputils.  Is adding the
>> CODEC_FLAG_INTERLACED_DCT not suppose to be used with these compare
>> functions?
> 
> ildctcmp only works with VSAD and VSSE feel free to add more comparission
> functions or write some sort of generic wraper for the others ...
> or add a check which prints an error message instead of crashing
> all are welcome as patches ...
> 
> [...]
> 

Are there any other compare functions that have this condition?

-- 
Brian Brice




More information about the ffmpeg-devel mailing list