comparison h263.c @ 2804:dc616c8ef3e6 libavcodec

minor user data reading bugfix
author michael
date Sat, 23 Jul 2005 11:16:18 +0000
parents 2b37bcabe608
children 55a6659fc2ee
comparison
equal deleted inserted replaced
2803:26970df644f1 2804:dc616c8ef3e6
5740 int i; 5740 int i;
5741 int e; 5741 int e;
5742 int ver, build, ver2, ver3; 5742 int ver, build, ver2, ver3;
5743 char last; 5743 char last;
5744 5744
5745 buf[0]= show_bits(gb, 8); 5745 for(i=0; i<255; i++){
5746 for(i=1; i<256; i++){ 5746 if(show_bits(gb, 23) == 0) break;
5747 buf[i]= show_bits(gb, 16)&0xFF; 5747 buf[i]= get_bits(gb, 8);
5748 if(buf[i]==0) break; 5748 }
5749 skip_bits(gb, 8); 5749 buf[i]=0;
5750 }
5751 buf[255]=0;
5752 5750
5753 /* divx detection */ 5751 /* divx detection */
5754 e=sscanf(buf, "DivX%dBuild%d%c", &ver, &build, &last); 5752 e=sscanf(buf, "DivX%dBuild%d%c", &ver, &build, &last);
5755 if(e<2) 5753 if(e<2)
5756 e=sscanf(buf, "DivX%db%d%c", &ver, &build, &last); 5754 e=sscanf(buf, "DivX%db%d%c", &ver, &build, &last);