[FFmpeg-devel] [PATCH] Sun Rasterfile decoder
Ivo
ivop
Fri Dec 28 14:14:06 CET 2007
On Friday 28 December 2007 04:40, Michael Niedermayer wrote:
> On Fri, Dec 28, 2007 at 12:18:47AM +0100, Ivo wrote:
> > Yes, it is. I removed the whole 'a' variable and changed it to
> > a 'while(ptr!=end)' loop:
> >
> > if (type == RT_BYTE_ENCODED) {
> > int value, run;
> > uint8_t *end = ptr + h*stride;
> >
> > x = 0;
> > while (ptr != end) {
> > run = 1;
> > if ((value = *buf++) == 0x80) {
> > run = *buf++ + 1;
> > if (run != 1)
> > value = *buf++;
> > }
> > while (run--) {
> > if (x < len)
> > ptr[x] = value;
> > if (++x >= alen) {
> > x = 0;
> > ptr += stride;
> > if (ptr == end)
> > break;
> > }
> > }
> > }
> > } else {
>
> ok
Comitted.
--Ivo
More information about the ffmpeg-devel
mailing list