comparison vc1dec.c @ 11982:669bf7f6c986 libavcodec

Change type of zz_table to uint8_t to match the scantables it points to.
author reimar
date Sun, 27 Jun 2010 19:27:08 +0000
parents f917cd286e41
children 9ba7d2a5b20a
comparison
equal deleted inserted replaced
11981:d3551fcf4c1c 11982:669bf7f6c986
1479 //AC Decoding 1479 //AC Decoding
1480 i = 1; 1480 i = 1;
1481 1481
1482 { 1482 {
1483 int last = 0, skip, value; 1483 int last = 0, skip, value;
1484 const int8_t *zz_table; 1484 const uint8_t *zz_table;
1485 int scale; 1485 int scale;
1486 int k; 1486 int k;
1487 1487
1488 scale = v->pq * 2 + v->halfpq; 1488 scale = v->pq * 2 + v->halfpq;
1489 1489
1665 if(!dc_pred_dir && n==2) q2 = q1; 1665 if(!dc_pred_dir && n==2) q2 = q1;
1666 if(n==3) q2 = q1; 1666 if(n==3) q2 = q1;
1667 1667
1668 if(coded) { 1668 if(coded) {
1669 int last = 0, skip, value; 1669 int last = 0, skip, value;
1670 const int8_t *zz_table; 1670 const uint8_t *zz_table;
1671 int k; 1671 int k;
1672 1672
1673 if(v->s.ac_pred) { 1673 if(v->s.ac_pred) {
1674 if(!dc_pred_dir) 1674 if(!dc_pred_dir)
1675 zz_table = wmv1_scantable[2]; 1675 zz_table = wmv1_scantable[2];
1872 if(!dc_pred_dir && n==2) q2 = q1; 1872 if(!dc_pred_dir && n==2) q2 = q1;
1873 if(n==3) q2 = q1; 1873 if(n==3) q2 = q1;
1874 1874
1875 if(coded) { 1875 if(coded) {
1876 int last = 0, skip, value; 1876 int last = 0, skip, value;
1877 const int8_t *zz_table; 1877 const uint8_t *zz_table;
1878 int k; 1878 int k;
1879 1879
1880 zz_table = wmv1_scantable[0]; 1880 zz_table = wmv1_scantable[0];
1881 1881
1882 while (!last) { 1882 while (!last) {