|
|
@@ -1646,7 +1646,7 @@ static int mkv_write_packet_internal(AVFormatContext *s, AVPacket *pkt, int add_ |
|
|
|
|
|
|
|
|
if (codec->codec_type != AVMEDIA_TYPE_SUBTITLE) { |
|
|
if (codec->codec_type != AVMEDIA_TYPE_SUBTITLE) { |
|
|
mkv_write_block(s, pb, MATROSKA_ID_SIMPLEBLOCK, pkt, keyframe << 7); |
|
|
mkv_write_block(s, pb, MATROSKA_ID_SIMPLEBLOCK, pkt, keyframe << 7); |
|
|
if (codec->codec_type == AVMEDIA_TYPE_VIDEO && keyframe) { |
|
|
|
|
|
|
|
|
if (codec->codec_type == AVMEDIA_TYPE_VIDEO && keyframe || add_cue) { |
|
|
ret = mkv_add_cuepoint(mkv->cues, pkt->stream_index, dash_tracknum, ts, mkv->cluster_pos, relative_packet_pos, -1); |
|
|
ret = mkv_add_cuepoint(mkv->cues, pkt->stream_index, dash_tracknum, ts, mkv->cluster_pos, relative_packet_pos, -1); |
|
|
if (ret < 0) return ret; |
|
|
if (ret < 0) return ret; |
|
|
} |
|
|
} |
|
|
|