summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorJohn Stebbins <jstebbins.hb@gmail.com>2017-02-23 17:09:23 -0700
committerJohn Stebbins <jstebbins.hb@gmail.com>2017-02-23 17:09:23 -0700
commitbc86d4239a196237c920dbd824b44f4122a935a7 (patch)
tree28b01918090aa07f1e53beb62e81f53f00f2f708 /contrib
parent3eb59384d7311bbbe2dafcac7821e120c6d5ce3a (diff)
libav: fix reading wmv larger than 2G
fixes https://github.com/HandBrake/HandBrake/issues/587
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ffmpeg/A15-asf-2G.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/contrib/ffmpeg/A15-asf-2G.patch b/contrib/ffmpeg/A15-asf-2G.patch
new file mode 100644
index 000000000..4b5f350be
--- /dev/null
+++ b/contrib/ffmpeg/A15-asf-2G.patch
@@ -0,0 +1,27 @@
+From 93de850f0fe3dc0084aba1933b57f0a0c0344d15 Mon Sep 17 00:00:00 2001
+From: John Stebbins <stebbins@jetheaddev.com>
+Date: Thu, 23 Feb 2017 16:47:58 -0700
+Subject: [PATCH] asfdec: fix reading files larger than 2GB
+
+avio_skip returns file position and overflows int
+---
+ libavformat/asfdec.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
+index 34730b2..10d3396 100644
+--- a/libavformat/asfdec.c
++++ b/libavformat/asfdec.c
+@@ -976,7 +976,8 @@ static int asf_read_simple_index(AVFormatContext *s, const GUIDParseTable *g)
+ uint64_t interval; // index entry time interval in 100 ns units, usually it's 1s
+ uint32_t pkt_num, nb_entries;
+ int32_t prev_pkt_num = -1;
+- int i, ret;
++ int i;
++ int64_t ret;
+ uint64_t size = avio_rl64(pb);
+
+ // simple index objects should be ordered by stream number, this loop tries to find
+--
+2.9.3
+