[Ffmpeg-devel] [PATCH/RFC] 1-7 and 9-15 bits per pixel PGM files

Reimar Döffinger Reimar.Doeffinger
Mon Apr 9 12:08:07 CEST 2007

On Mon, Apr 09, 2007 at 11:27:33AM +0200, Ivo wrote:
> I don't think linesize can be odd with 2 bytes per pixel grayscale, can it?

Sure it "can", just as it "can" be smaller than the number of bytes
needed to represent one line. For the later case it was decided that we
will not define behaviour for this case, I don't remember the former
problem ever coming up though.
Both case probably should be documented somewhere if they aren't, maybe
in the get_buffer description in avcodec.h?
Or in FF_COMMON_FRAME? There linesize is not documented at all..

Reimar D?ffnger

More information about the ffmpeg-devel mailing list