diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-04-29 02:43:12 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-29 02:43:12 +0200 |
commit | c83a528193da3bd863d0b62eaf18510f873200ca (patch) | |
tree | 70b20c7b78a228cd5fe4c1c9da1afa0989722ff8 | |
parent | ba9c4db59a82e7aa70a61782c3e3e85eaae7dd72 (diff) | |
download | ffmpeg-c83a528193da3bd863d0b62eaf18510f873200ca.tar.gz |
flashsv2enc: remove useless casts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/flashsv2enc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/flashsv2enc.c b/libavcodec/flashsv2enc.c index 3fd716f692..9a78070304 100644 --- a/libavcodec/flashsv2enc.c +++ b/libavcodec/flashsv2enc.c @@ -315,14 +315,14 @@ static int write_block(Block * b, uint8_t * buf, int buf_size) buf[buf_pos++] = b->flags; if (b->flags & HAS_DIFF_BLOCKS) { - buf[buf_pos++] = (uint8_t) (b->start); - buf[buf_pos++] = (uint8_t) (b->len); + buf[buf_pos++] = (b->start); + buf[buf_pos++] = (b->len); } if (b->flags & ZLIB_PRIME_COMPRESS_CURRENT) { //This feature of the format is poorly understood, and as of now, unused. - buf[buf_pos++] = (uint8_t) (b->col); - buf[buf_pos++] = (uint8_t) (b->row); + buf[buf_pos++] = (b->col); + buf[buf_pos++] = (b->row); } memcpy(buf + buf_pos, b->data, b->data_size); @@ -437,10 +437,10 @@ static int write_pixel_15_7(Palette * palette, uint8_t * dest, const uint8_t * s int c7 = pixel_color7_fast(palette, c15); int d7 = chroma_diff(color, palette->colors[c7]); if (dist + d15 >= d7) { - dest[0] = (uint8_t) c7; + dest[0] = c7; return 1; } else { - dest[0] = 0x80 | (uint8_t) (c15 >> 8); + dest[0] = 0x80 | (c15 >> 8); dest[1] = c15 & 0xff; return 2; } |