comparison mov.c @ 2810:e106e4b43718 libavformat

adjust indentation on latest patch
author melanson
date Wed, 05 Dec 2007 04:32:45 +0000
parents 17086a526938
children 3fa92d78424c
comparison
equal deleted inserted replaced
2809:17086a526938 2810:e106e4b43718
701 color_start = get_be32(pb); 701 color_start = get_be32(pb);
702 color_count = get_be16(pb); 702 color_count = get_be16(pb);
703 color_end = get_be16(pb); 703 color_end = get_be16(pb);
704 if ((color_start <= 255) && 704 if ((color_start <= 255) &&
705 (color_end <= 255)) { 705 (color_end <= 255)) {
706 for (j = color_start; j <= color_end; j++) { 706 for (j = color_start; j <= color_end; j++) {
707 /* each R, G, or B component is 16 bits; 707 /* each R, G, or B component is 16 bits;
708 * only use the top 8 bits; skip alpha bytes 708 * only use the top 8 bits; skip alpha bytes
709 * up front */ 709 * up front */
710 get_byte(pb); 710 get_byte(pb);
711 get_byte(pb); 711 get_byte(pb);
712 r = get_byte(pb); 712 r = get_byte(pb);
713 get_byte(pb); 713 get_byte(pb);
714 g = get_byte(pb); 714 g = get_byte(pb);
715 get_byte(pb); 715 get_byte(pb);
716 b = get_byte(pb); 716 b = get_byte(pb);
717 get_byte(pb); 717 get_byte(pb);
718 c->palette_control.palette[j] = 718 c->palette_control.palette[j] =
719 (r << 16) | (g << 8) | (b); 719 (r << 16) | (g << 8) | (b);
720 } 720 }
721 } 721 }
722 } 722 }
723 723
724 st->codec->palctrl = &c->palette_control; 724 st->codec->palctrl = &c->palette_control;