[Ffmpeg-devel] Any way to override the aligned line-size?

Mike Melanson mike
Tue May 2 05:33:06 CEST 2006


Cyril Zorin wrote:
> Suppose I tell ffmpeg that my image size is 640x480. I check the  
> aligned size, which corresponds to 672 pixels instead of 640. This  
> forces me to hand-copy every line using memcpy (not so bad), instead  of 
> doing a quick fire using memcpy of the whole buffer (better).
> 
> Is there any way to force ffmpeg to use the image width as the line  
> size, or perhaps is there some option I'm neglecting to set somewhere?

I don't think so. Yes, I know it's tedious, especially for old-school 
RLE-type algorithms, but that's just the way it is. Take a look at FLIC 
which has to deal with the strides.

-- 
	-Mike Melanson





More information about the ffmpeg-devel mailing list