projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bb9625
)
Avoid division by zero
author
Reinhard Tartler
<siretart@tauware.de>
Sun, 4 Apr 2010 07:18:10 +0000
(07:18 +0000)
committer
Reinhard Tartler
<siretart@tauware.de>
Sun, 4 Apr 2010 07:18:10 +0000
(07:18 +0000)
Based on clang-scan report http://permalink.gmane.org/gmane.comp.video.ffmpeg.devel/107290
Originally committed as revision 22795 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/zmbv.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/zmbv.c
b/libavcodec/zmbv.c
index
e8e5135
..
bfd6067
100644
(file)
--- a/
libavcodec/zmbv.c
+++ b/
libavcodec/zmbv.c
@@
-434,6
+434,7
@@
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
}
if(c->bw == 0 || c->bh == 0) {
av_log(avctx, AV_LOG_ERROR, "Unsupported block size %ix%i\n", c->bw, c->bh);
+ return -1;
}
if(c->comp != 0 && c->comp != 1) {
av_log(avctx, AV_LOG_ERROR, "Unsupported compression type %i\n", c->comp);