[FFmpeg-cvslog] avformat/avidec: Remove ancient assert
Michael Niedermayer
git at videolan.org
Wed Sep 28 19:06:24 EEST 2016
ffmpeg | branch: release/3.0 | Michael Niedermayer <michael at niedermayer.cc> | Wed Sep 28 15:47:12 2016 +0200| [77d5a237ef6803e3b5a138fdee10bf1f62e4a7d7] | committer: Michael Niedermayer
avformat/avidec: Remove ancient assert
This assert can with crafted files fail, a warning is already printed
for this case.
Fixes assertion failure
Fixes:1/assert.avi
Found-by: 连一汉 <lianyihan at 360.cn>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 14bac7e00d72eac687612d9b125e585011a56d4f)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=77d5a237ef6803e3b5a138fdee10bf1f62e4a7d7
---
libavformat/avidec.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index f4a2872..2e053a3 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1846,7 +1846,6 @@ static int avi_read_seek(AVFormatContext *s, int stream_index,
continue;
// av_assert1(st2->codec->block_align);
- av_assert0(fabs(av_q2d(st2->time_base) - ast2->scale / (double)ast2->rate) < av_q2d(st2->time_base) * 0.00000001);
index = av_index_search_timestamp(st2,
av_rescale_q(timestamp,
st->time_base,
More information about the ffmpeg-cvslog
mailing list