Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-14 00:33:40 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-10-14 00:33:40 +0400
commit670b927aa22125a20b7915014ae41335cbf20ec4 (patch)
tree11440e5867e3bbbaa547e14f01e1d1a3389fdb20 /libavcodec/ffv1.c
parentf70a651b3f774166af545692fb83b5c27d98d169 (diff)
ffv1: make sure gob_count is not 0
Fixes division by 0 Fixes CID733736 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r--libavcodec/ffv1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 778707003f..0a70b6551f 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -1120,7 +1120,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 AVERROR_INVALIDDATA;
}