diff mbox series

[FFmpeg-devel,4/5] lavf/matroskaenc: enable PGS merge auto bsf

Message ID 20200508141128.2684843-5-jstebbins@jetheaddev.com
State New
Headers show
Series [FFmpeg-devel,1/5] lavc/pgs_frame_merge_bsf: add bsf to merge PGS segments | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

John Stebbins May 8, 2020, 2:11 p.m. UTC
PGS segments must be merged to one packet for muxing to mkv
---
 libavformat/matroskaenc.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 99b549ecc4..7f2cda41b9 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -2735,6 +2735,8 @@  static int mkv_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt)
             ret = ff_stream_add_bitstream_filter(st, "aac_adtstoasc", NULL);
     } else if (st->codecpar->codec_id == AV_CODEC_ID_VP9) {
         ret = ff_stream_add_bitstream_filter(st, "vp9_superframe", NULL);
+    } else if (st->codecpar->codec_id == AV_CODEC_ID_HDMV_PGS_SUBTITLE) {
+        ret = ff_stream_add_bitstream_filter(st, "pgs_frame_merge", NULL);
     }
 
     return ret;