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; }