[FFmpeg-devel] [RFC] avfilter_request_frame() crash

Stefano Sabatini stefano.sabatini-lala
Mon Jan 12 21:53:27 CET 2009


Hi all,

when calling avfilter_request_frame() on a link with no source it
crashes, for example with:

ffplay -f video4linux -s 320x240 /dev/video -vfilters "[in] setpts=PTS-STARTPTS, hflip, setpts=PTS-STARTPTS [foo]"

Should we:
1) add a check in avfilter_request_frame(), so that it will return -1
   if the link source is NULL
2) ensure that no dangling links exist before to start to extract
   filters from the filterchain
3) both 1) and 2)
?

Option 1) seems safest but will introduce a check at each run,
slightly slowing down the whole filtering process.

Regards.
-- 
FFmpeg = Fostering and Freak Mythic Puritan Earthshaking Gargoyle




More information about the ffmpeg-devel mailing list