This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
check for qscale==0 (fixes 1/0 on one corrupted stream)
Originally committed as revision 1574 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer
22 years ago
parent
dce778e0ea
commit
ae2d2d6c41
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
libavcodec/msmpeg4.c
+ 4
- 0
libavcodec/msmpeg4.c
View File
@@ -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);
Write
Preview
Loading…
Cancel
Save