Commit 71be41a5 authored by michael's avatar michael

minor user data reading bugfix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4467 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 172800ff
......@@ -5742,13 +5742,11 @@ static int decode_user_data(MpegEncContext *s, GetBitContext *gb){
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment