projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dce778e
)
check for qscale==0 (fixes 1/0 on one corrupted stream)
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 10 Feb 2003 22:43:30 +0000
(22:43 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 10 Feb 2003 22:43:30 +0000
(22:43 +0000)
Originally committed as revision 1574 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/msmpeg4.c
patch
|
blob
|
history
diff --git
a/libavcodec/msmpeg4.c
b/libavcodec/msmpeg4.c
index
5aee0cf
..
a17890d
100644
(file)
--- a/
libavcodec/msmpeg4.c
+++ b/
libavcodec/msmpeg4.c
@@
-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);