[FFmpeg-cvslog] avformat/avidec: Do not fail for crazy start times
Gabor Nagy
git at videolan.org
Thu Dec 11 15:17:07 CET 2014
ffmpeg | branch: master | Gabor Nagy <maillist at sign-el-soft.hu> | Thu Dec 11 14:59:10 2014 +0100| [28fc31d78da989e3ed0ac74d2edc0ba78d1f1541] | committer: Michael Niedermayer
avformat/avidec: Do not fail for crazy start times
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=28fc31d78da989e3ed0ac74d2edc0ba78d1f1541
---
libavformat/avidec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index e8c2730..a8318ff 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);
More information about the ffmpeg-cvslog
mailing list