summaryrefslogtreecommitdiffstats
path: root/contrib/ffmpeg/A01-matroskaenc-pgs-duration.patch
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2017-12-25 23:53:54 +0100
committerSven Gothel <[email protected]>2017-12-25 23:53:54 +0100
commit4fd6c5c0085c9aeb566e89c675cf29173cc690f4 (patch)
tree2401a5867c299599381aad0be2e18d80dc975cea /contrib/ffmpeg/A01-matroskaenc-pgs-duration.patch
parent51b4cac2faed53f4e2eab75910b15eae45cd4387 (diff)
FFMPEG #974: Use latest FFMPEG 3.4.1 (2/2)
Patch 2/2 for https://github.com/HandBrake/HandBrake/issues/974 moving to FFMPEG 3.4.1 from LIBAV 12.2. All patches have been moved to subfolder 'old' since they do not apply cleanly anymore. Work has to be performed to validate whether patches are still required.
Diffstat (limited to 'contrib/ffmpeg/A01-matroskaenc-pgs-duration.patch')
-rw-r--r--contrib/ffmpeg/A01-matroskaenc-pgs-duration.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/contrib/ffmpeg/A01-matroskaenc-pgs-duration.patch b/contrib/ffmpeg/A01-matroskaenc-pgs-duration.patch
deleted file mode 100644
index 9463905c8..000000000
--- a/contrib/ffmpeg/A01-matroskaenc-pgs-duration.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From dab79ea5cd01187567b1761aaf1c329926483786 Mon Sep 17 00:00:00 2001
-From: John Stebbins <[email protected]>
-Date: Wed, 29 Oct 2014 10:54:44 -0700
-Subject: [PATCH] matroskaenc: Fix writing zero duration subtitles
-
-The matroska spec says blockduration == 0 means the frame is not a
-keyframe. Since all subtitles are "keyframes", 0 blockduration should
-not be written.
-
-Fixes mkvalidator error messages for PGS subtitles.
----
- libavformat/matroskaenc.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
-index 4ec474d..628300b 100644
---- a/libavformat/matroskaenc.c
-+++ b/libavformat/matroskaenc.c
-@@ -1487,7 +1487,8 @@ static int mkv_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
- mkv_blockgroup_size(pkt->size));
- duration = pkt->convergence_duration;
- mkv_write_block(s, pb, MATROSKA_ID_BLOCK, pkt, 0);
-- put_ebml_uint(pb, MATROSKA_ID_BLOCKDURATION, duration);
-+ if (duration > 0)
-+ put_ebml_uint(pb, MATROSKA_ID_BLOCKDURATION, duration);
- end_ebml_master(pb, blockgroup);
- }
-
---
-1.9.3
-