[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h263.c,1.283,1.284
Michael Niedermayer CVS
michael
Sat Jul 23 13:16:20 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv13125
Modified Files:
h263.c
Log Message:
minor user data reading bugfix
Index: h263.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h263.c,v
retrieving revision 1.283
retrieving revision 1.284
diff -u -d -r1.283 -r1.284
--- h263.c 17 Jun 2005 15:02:52 -0000 1.283
+++ h263.c 23 Jul 2005 11:16:18 -0000 1.284
@@ -5742,13 +5742,11 @@
int ver, build, ver2, ver3;
char last;
- buf[0]= show_bits(gb, 8);
- for(i=1; i<256; i++){
- buf[i]= show_bits(gb, 16)&0xFF;
- if(buf[i]==0) break;
- skip_bits(gb, 8);
+ for(i=0; i<255; i++){
+ if(show_bits(gb, 23) == 0) break;
+ buf[i]= get_bits(gb, 8);
}
- buf[255]=0;
+ buf[i]=0;
/* divx detection */
e=sscanf(buf, "DivX%dBuild%d%c", &ver, &build, &last);
More information about the ffmpeg-cvslog
mailing list