Revision ae4cffd9 postproc/swscale.c

View differences:

postproc/swscale.c
356 356
			((uint8_t*)dest)[3]= r[Y2];\
357 357
			((uint8_t*)dest)[4]= g[Y2];\
358 358
			((uint8_t*)dest)[5]= b[Y2];\
359
			((uint8_t*)dest)+=6;\
359
			dest+=6;\
360 360
		}\
361 361
		break;\
362 362
	case IMGFMT_BGR24:\
......
367 367
			((uint8_t*)dest)[3]= b[Y2];\
368 368
			((uint8_t*)dest)[4]= g[Y2];\
369 369
			((uint8_t*)dest)[5]= r[Y2];\
370
			((uint8_t*)dest)+=6;\
370
			dest+=6;\
371 371
		}\
372 372
		break;\
373 373
	case IMGFMT_RGB16:\
......
449 449
				acc+= acc + g[((buf0[i+6]*yalpha1+buf1[i+6]*yalpha)>>19) + d128[6]];\
450 450
				acc+= acc + g[((buf0[i+7]*yalpha1+buf1[i+7]*yalpha)>>19) + d128[7]];\
451 451
				((uint8_t*)dest)[0]= acc;\
452
				((uint8_t*)dest)++;\
452
				dest++;\
453 453
			}\
454 454
\
455 455
/*\
......
539 539
			((uint8_t*)dest)[3]= r[Y2];
540 540
			((uint8_t*)dest)[4]= g[Y2];
541 541
			((uint8_t*)dest)[5]= b[Y2];
542
			((uint8_t*)dest)+=6;
542
			dest+=6;
543 543
		}
544 544
		break;
545 545
	case IMGFMT_BGR24:
......
550 550
			((uint8_t*)dest)[3]= b[Y2];
551 551
			((uint8_t*)dest)[4]= g[Y2];
552 552
			((uint8_t*)dest)[5]= r[Y2];
553
			((uint8_t*)dest)+=6;
553
			dest+=6;
554 554
		}
555 555
		break;
556 556
	case IMGFMT_RGB16:
......
645 645
				acc+= acc + g[Y2+d128[(i+1)&7]];
646 646
				if((i&7)==6){
647 647
					((uint8_t*)dest)[0]= acc;
648
					((uint8_t*)dest)++;
648
					dest++;
649 649
				}
650 650
			}
651 651
		}

Also available in: Unified diff