diff options
author | John Stebbins <jstebbins@jetheaddev.com> | 2020-05-08 08:11:27 -0600 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-05-10 10:03:32 +0200 |
commit | 7f5b57766bd5c6360fc83dd67c72bed772864da8 (patch) | |
tree | 26ed295072c62ab3bb9c5f3c7d8f2f1f45c7d64d /libavformat/matroskaenc.c | |
parent | 326f9fd01be8b67b2aa155f8f988d274a227e655 (diff) | |
download | ffmpeg-7f5b57766bd5c6360fc83dd67c72bed772864da8.tar.gz |
lavf/matroskaenc: enable PGS merge auto bsf
PGS segments must be merged to one packet for muxing to mkv
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 4f9e283940..c30584949a 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -3172,6 +3172,9 @@ static int mkv_check_bitstream(AVFormatContext *s, AVStream *st, 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 (CONFIG_MATROSKA_MUXER && + st->codecpar->codec_id == AV_CODEC_ID_HDMV_PGS_SUBTITLE) { + ret = ff_stream_add_bitstream_filter(st, "pgs_frame_merge", NULL); } return ret; |