diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-13 22:33:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-13 22:33:40 +0200 |
commit | 670b927aa22125a20b7915014ae41335cbf20ec4 (patch) | |
tree | 11440e5867e3bbbaa547e14f01e1d1a3389fdb20 /libavcodec/ffv1.c | |
parent | f70a651b3f774166af545692fb83b5c27d98d169 (diff) | |
download | ffmpeg-670b927aa22125a20b7915014ae41335cbf20ec4.tar.gz |
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.c | 2 |
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; } |