summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ffmpeg/A00-mkv-simpleblock.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/ffmpeg/A00-mkv-simpleblock.patch b/contrib/ffmpeg/A00-mkv-simpleblock.patch
new file mode 100644
index 000000000..9d24799ef
--- /dev/null
+++ b/contrib/ffmpeg/A00-mkv-simpleblock.patch
@@ -0,0 +1,13 @@
+diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
+index a356611..0b35f15 100644
+--- a/libavformat/matroskadec.c
++++ b/libavformat/matroskadec.c
+@@ -1852,6 +1852,8 @@ static int matroska_parse_cluster(MatroskaDemuxContext *matroska)
+ for (i=0; i<blocks_list->nb_elem; i++)
+ if (blocks[i].bin.size > 0 && blocks[i].bin.data) {
+ int is_keyframe = blocks[i].non_simple ? !blocks[i].reference : -1;
++ if (!blocks[i].non_simple)
++ blocks[i].duration = AV_NOPTS_VALUE;
+ res=matroska_parse_block(matroska,
+ blocks[i].bin.data, blocks[i].bin.size,
+ blocks[i].bin.pos, cluster.timecode,