diff options
author | James Almer <jamrial@gmail.com> | 2013-09-14 05:59:21 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-20 22:40:16 +0200 |
commit | 39442b1a1b22f32a1f43eaf7e67c7fedee43b601 (patch) | |
tree | b5536135716eeb234f08ffcdfd08fd32ed12b5a8 /libavformat/matroskaenc.c | |
parent | bed611f937cf98c69c5a0b97d304a72baec02b19 (diff) | |
download | ffmpeg-39442b1a1b22f32a1f43eaf7e67c7fedee43b601.tar.gz |
matroskaenc: Add CuePoints for subtitle tracks
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 9f631c228e..c1e7f1fed2 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1520,7 +1520,7 @@ static int mkv_write_packet_internal(AVFormatContext *s, AVPacket *pkt) end_ebml_master(pb, blockgroup); } - if (codec->codec_type == AVMEDIA_TYPE_VIDEO && keyframe) { + if ((codec->codec_type == AVMEDIA_TYPE_VIDEO && keyframe) || codec->codec_type == AVMEDIA_TYPE_SUBTITLE) { ret = mkv_add_cuepoint(mkv->cues, pkt->stream_index, ts, mkv->cluster_pos, relative_packet_pos); if (ret < 0) return ret; } |