Commit cadcee82 authored by michaelni's avatar michaelni

check for qscale==0 (fixes 1/0 on one corrupted stream)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1574 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d4836fda
......@@ -1228,6 +1228,10 @@ return -1;
}
#endif
s->qscale = get_bits(&s->gb, 5);
if(s->qscale==0){
fprintf(stderr, "invalid qscale\n");
return -1;
}
if (s->pict_type == I_TYPE) {
code = get_bits(&s->gb, 5);
......
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