[Ffmpeg-devel] [PATCH] ported SGI decoder to the new API
Xiaohui Sun
sunxiaohui
Tue Apr 3 14:09:35 CEST 2007
-----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[0] is the end address of the image buffer and the start address
is p->data[0] + (avctx->height - 1) * p->linesize[0]?
[...]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGEkP/+BwsLu3sVWwRAi9AAJ9t4iQ1szocL+o4keZnSMIat5jxAACfUHqf
oXynGvDGIQg9IrGy9C0jYTE=
=7l0O
-----END PGP SIGNATURE-----
More information about the ffmpeg-devel
mailing list