Commit bd55f7cc authored by siretart's avatar siretart

Avoid division by zero

Based on clang-scan report http://permalink.gmane.org/gmane.comp.video.ffmpeg.devel/107290


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22795 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d78aafc3
......@@ -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);
......
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