Mercurial > libavcodec.hg
comparison flicvideo.c @ 4233:5e05fadc93d1 libavcodec
support byte_run=0 case in DELTA_FLI (this case means only skip pixels)
author | alex |
---|---|
date | Thu, 23 Nov 2006 23:50:08 +0000 |
parents | cb5e46ee0495 |
children | e560d163e7a8 |
comparison
equal
deleted
inserted
replaced
4232:cb5e46ee0495 | 4233:5e05fadc93d1 |
---|---|
306 CHECK_PIXEL_PTR(byte_run); | 306 CHECK_PIXEL_PTR(byte_run); |
307 for (j = 0; j < byte_run; j++, pixel_countdown--) { | 307 for (j = 0; j < byte_run; j++, pixel_countdown--) { |
308 palette_idx1 = buf[stream_ptr++]; | 308 palette_idx1 = buf[stream_ptr++]; |
309 pixels[pixel_ptr++] = palette_idx1; | 309 pixels[pixel_ptr++] = palette_idx1; |
310 } | 310 } |
311 } else { | 311 } else if (byte_run < 0) { |
312 byte_run = -byte_run; | 312 byte_run = -byte_run; |
313 palette_idx1 = buf[stream_ptr++]; | 313 palette_idx1 = buf[stream_ptr++]; |
314 CHECK_PIXEL_PTR(byte_run); | 314 CHECK_PIXEL_PTR(byte_run); |
315 for (j = 0; j < byte_run; j++, pixel_countdown--) { | 315 for (j = 0; j < byte_run; j++, pixel_countdown--) { |
316 pixels[pixel_ptr++] = palette_idx1; | 316 pixels[pixel_ptr++] = palette_idx1; |