comparison h263.c @ 3776:1843a85123b7 libavcodec

fix some signedness warnings
author mru
date Wed, 27 Sep 2006 19:47:39 +0000
parents 7963ceb93083
children 20545fbb6f7c
comparison
equal deleted inserted replaced
3775:8e1ed8300165 3776:1843a85123b7
1516 } 1516 }
1517 1517
1518 static int h263_pred_dc(MpegEncContext * s, int n, uint16_t **dc_val_ptr) 1518 static int h263_pred_dc(MpegEncContext * s, int n, uint16_t **dc_val_ptr)
1519 { 1519 {
1520 int x, y, wrap, a, c, pred_dc, scale; 1520 int x, y, wrap, a, c, pred_dc, scale;
1521 int16_t *dc_val; 1521 uint16_t *dc_val;
1522 1522
1523 /* find prediction */ 1523 /* find prediction */
1524 if (n < 4) { 1524 if (n < 4) {
1525 x = 2 * s->mb_x + (n & 1); 1525 x = 2 * s->mb_x + (n & 1);
1526 y = 2 * s->mb_y + ((n & 2) >> 1); 1526 y = 2 * s->mb_y + ((n & 2) >> 1);
1561 } 1561 }
1562 1562
1563 static void h263_pred_acdc(MpegEncContext * s, DCTELEM *block, int n) 1563 static void h263_pred_acdc(MpegEncContext * s, DCTELEM *block, int n)
1564 { 1564 {
1565 int x, y, wrap, a, c, pred_dc, scale, i; 1565 int x, y, wrap, a, c, pred_dc, scale, i;
1566 int16_t *dc_val, *ac_val, *ac_val1; 1566 uint16_t *dc_val;
1567 int16_t *ac_val, *ac_val1;
1567 1568
1568 /* find prediction */ 1569 /* find prediction */
1569 if (n < 4) { 1570 if (n < 4) {
1570 x = 2 * s->mb_x + (n & 1); 1571 x = 2 * s->mb_x + (n & 1);
1571 y = 2 * s->mb_y + (n>> 1); 1572 y = 2 * s->mb_y + (n>> 1);