Mercurial > libavcodec.hg
changeset 2804:dc616c8ef3e6 libavcodec
minor user data reading bugfix
author | michael |
---|---|
date | Sat, 23 Jul 2005 11:16:18 +0000 |
parents | 26970df644f1 |
children | 55a6659fc2ee |
files | h263.c |
diffstat | 1 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/h263.c Fri Jul 22 09:01:47 2005 +0000 +++ b/h263.c Sat Jul 23 11:16:18 2005 +0000 @@ -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); - } - buf[255]=0; + for(i=0; i<255; i++){ + if(show_bits(gb, 23) == 0) break; + buf[i]= get_bits(gb, 8); + } + buf[i]=0; /* divx detection */ e=sscanf(buf, "DivX%dBuild%d%c", &ver, &build, &last);