aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-09-28 15:47:12 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-10-01 02:50:54 +0200
commitc8c5f66b42edc37474baa5cb51460cbf6f33075b (patch)
tree92ed55120f8ebecb9483f2912ff9109dec375b1c
parentbc6174d4af76668040c80f20a9a5ae0f7420f187 (diff)
downloadffmpeg-c8c5f66b42edc37474baa5cb51460cbf6f33075b.tar.gz
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@360.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 14bac7e00d72eac687612d9b125e585011a56d4f) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/avidec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 26b02342a9..410c2d59df 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1853,7 +1853,6 @@ static int avi_read_seek(AVFormatContext *s, int stream_index,
continue;
// av_assert1(st2->codecpar->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,