diff options
author | Gabor Nagy <maillist@sign-el-soft.hu> | 2014-12-11 14:59:10 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-11 14:59:10 +0100 |
commit | 28fc31d78da989e3ed0ac74d2edc0ba78d1f1541 (patch) | |
tree | d3d22c8493b4fc5ae5ec881743a347050c39665c /libavformat/avidec.c | |
parent | 27dfe54eb765793b1f8d8cecaed0ee1e507fcf57 (diff) | |
download | ffmpeg-28fc31d78da989e3ed0ac74d2edc0ba78d1f1541.tar.gz |
avformat/avidec: Do not fail for crazy start times
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index e8c273062a..a8318ffded 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -659,7 +659,7 @@ static int avi_read_header(AVFormatContext *s) avio_rl32(pb); /* quality */ if (ast->cum_len*ast->scale/ast->rate > 3600) { av_log(s, AV_LOG_ERROR, "crazy start time, iam scared, giving up\n"); - return AVERROR_INVALIDDATA; + ast->cum_len = 0; } ast->sample_size = avio_rl32(pb); /* sample ssize */ ast->cum_len *= FFMAX(1, ast->sample_size); |