---
 libavformat/asfdec.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index a4ca78b..467adec 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -168,8 +168,9 @@ static void swap_guid(ff_asf_guid guid)
 
 static void align_position(AVIOContext *pb,  int64_t offset, uint64_t size)
 {
-    if (avio_tell(pb) != offset + size)
-        avio_seek(pb, offset + size, SEEK_SET);
+    if (size <= INT64_MAX)
+        if (avio_tell(pb) != offset + size)
+            avio_seek(pb, offset + size, SEEK_SET);
 }
 
 static int asf_read_unknown(AVFormatContext *s, const GUIDParseTable *g)
-- 
2.0.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to