summaryrefslogtreecommitdiffstats
path: root/contrib/ffmpeg/A13-avi-dv.patch
diff options
context:
space:
mode:
authorTim Walker <[email protected]>2016-04-01 04:13:26 +0200
committerTim Walker <[email protected]>2016-04-01 04:13:26 +0200
commitc0d19cc1e276f0818087c50f05efcf793cca6a92 (patch)
tree77b9845af97d1e68e67045223000bcf09f11a4fd /contrib/ffmpeg/A13-avi-dv.patch
parent4fbdf8f0c033acf55932ced0e0ecf41f187b5ff8 (diff)
ffmpeg: rename some files to have unique patch numbers.
Diffstat (limited to 'contrib/ffmpeg/A13-avi-dv.patch')
-rw-r--r--contrib/ffmpeg/A13-avi-dv.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/contrib/ffmpeg/A13-avi-dv.patch b/contrib/ffmpeg/A13-avi-dv.patch
new file mode 100644
index 000000000..1424fcc48
--- /dev/null
+++ b/contrib/ffmpeg/A13-avi-dv.patch
@@ -0,0 +1,37 @@
+commit 0fc61c6ab6912a2f0c40fdd3f3c591bc2a33efd4
+Author: Michael Niedermayer <[email protected]>
+Date: Sat Nov 28 21:06:45 2015 +0100
+
+ avi: Validate the stream-id for DV as well
+
+ Avoid false positives while syncing.
+
+ Bug-Id: ffmpeg/4086
+ Bug-Id: 879
+
+ Signed-off-by: Michael Niedermayer <[email protected]>
+ Signed-off-by: Luca Barbato <[email protected]>
+
+diff --git a/libavformat/avidec.c b/libavformat/avidec.c
+index 43c178f..477e045 100644
+--- a/libavformat/avidec.c
++++ b/libavformat/avidec.c
+@@ -995,7 +995,7 @@ start_sync:
+ goto start_sync;
+ }
+
+- n = avi->dv_demux ? 0 : get_stream_idx(d);
++ n = get_stream_idx(d);
+
+ if (!((i - avi->last_pkt_pos) & 1) &&
+ get_stream_idx(d + 1) < s->nb_streams)
+@@ -1007,6 +1007,9 @@ start_sync:
+ goto start_sync;
+ }
+
++ if (avi->dv_demux && n != 0)
++ continue;
++
+ // parse ##dc/##wb
+ if (n < s->nb_streams) {
+ AVStream *st;