[Ffmpeg-devel] [PATCH] ported SGI decoder to the new API
Tue Apr 3 14:40:33 CEST 2007
On Tue, Apr 03, 2007 at 08:09:35PM +0800, Xiaohui Sun wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Michael Niedermayer wrote:
> > Hi
> > On Tue, Apr 03, 2007 at 12:46:36AM +0800, Xiaohui Sun wrote:
> >> I have updated the patch.
> >> + if (expand_rle_row(in_buf + start_offset, end_buf, dest_row,
> >> + dest_row + s->linesize, z, s->depth) != s->width)
> >> + return AVERROR_INVALIDDATA;
> > linesize can be negative
> I am sorry but I am not quite clear about the meaning of negative
> linesize and found not much code/comment on it.
> I wonder if the linesize is negative, then the
> p->data is the end address of the image buffer and the start address
> is p->data + (avctx->height - 1) * p->linesize?
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The educated differ from the uneducated as much as the living from the
dead. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the ffmpeg-devel