aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-13 22:33:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-25 21:19:56 +0200
commitcff9f07d391f4880ce923f86163d41251124641e (patch)
tree4f9ae5506c7a0c1f102ebc2cce8c260acebd9c58 /libavcodec
parentde4606a5b798f8905ab1a3e07f0375db34f5e69e (diff)
downloadffmpeg-cff9f07d391f4880ce923f86163d41251124641e.tar.gz
ffv1: make sure gob_count is not 0
Fixes division by 0 Fixes CID733736 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 670b927aa22125a20b7915014ae41335cbf20ec4) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ffv1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 4d3a52887c..8875c6ebea 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -993,7 +993,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
}
}
gob_count= strtol(p, &next, 0);
- if(next==p || gob_count <0){
+ if(next==p || gob_count <=0){
av_log(avctx, AV_LOG_ERROR, "2Pass file invalid\n");
return -1;
}