aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ffv1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-13 22:33:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-13 22:33:40 +0200
commit670b927aa22125a20b7915014ae41335cbf20ec4 (patch)
tree11440e5867e3bbbaa547e14f01e1d1a3389fdb20 /libavcodec/ffv1.c
parentf70a651b3f774166af545692fb83b5c27d98d169 (diff)
downloadandroid_external_ffmpeg-670b927aa22125a20b7915014ae41335cbf20ec4.tar.gz
android_external_ffmpeg-670b927aa22125a20b7915014ae41335cbf20ec4.tar.bz2
android_external_ffmpeg-670b927aa22125a20b7915014ae41335cbf20ec4.zip
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;
}