It will never escape this loop when moof has no sidx info

Signed-off-by: Seokjin Hong <seokjin.hong...@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)

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to