[FFmpeg-devel] postprocess.c: filter name needs to be double 0 terminated

Piotr Kaczuba p.kaczuba at attika.ath.cx
Mon May 30 13:19:35 CEST 2011


W dniu 2011-05-29 00:15, Michael Niedermayer pisze:
[...]
> not pushed, it failed tests, the code needs more bytes to be 0 than 2
> when multiple expansions happen
> i reverted the problematic hunk that caused all this locally
[...]

No, two 0 bytes are enough, I just forgot to take care of it after a 
replacement happens, hence the failure. Please see attached patch, which 
should work in all cases. But instead of ensuring that the string is 
always double 0-terminated, I used memset() at the beginning to avoid 
adding extra instructions in the loop.

-- 
Cheers,
Piotr
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: postprocess.new.diff
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110530/cba3e113/attachment.ksh>


More information about the ffmpeg-devel mailing list