Browse Source

ffv1: make sure gob_count is not 0

Fixes division by 0
Fixes CID733736

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
670b927aa2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/ffv1.c

+ 1
- 1
libavcodec/ffv1.c View File

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


Loading…
Cancel
Save