[FFmpeg-devel] [PATCH] avformat/mov.c: Fix infinite loop when fragments seek
Seokjin Hong
seokjin.hong.kr at gmail.com
Fri Dec 7 13:19:30 EET 2018
It will never escape this loop when moof has no sidx info
Signed-off-by: Seokjin Hong <seokjin.hong.kr at gmail.com>
---
libavformat/mov.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index ec57a05803..b7b69e2772 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1293,6 +1293,8 @@ static int search_frag_timestamp(MOVFragmentIndex *frag_index,
b = m;
if (frag_time <= timestamp)
a = m;
+ } else {
+ return -1;
}
}
return a;
--
2.13.6 (Apple Git-96)
More information about the ffmpeg-devel
mailing list