Backwards compatibility: Accepts S_SSA and S_ASS as valid CodecIDs (new CodecIDs are S_TEXT/SSA and S_TEXT/ASS).

This commit is contained in:
Moritz Bunkus 2003-08-22 20:08:21 +00:00
parent a1ea341dd4
commit 795a1af38a
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2003-08-22 Moritz Bunkus <moritz@bunkus.org>
* mkvextract: Backwards compatibility: Accepts S_SSA and S_ASS as
valid CodecIDs (new CodecIDs are S_TEXT/SSA and S_TEXT/ASS).
* mkvmerge: Bugfix: If a subtitle packet was the last packet in a
cluster then its duration was not written resulting in a broken file.

View File

@ -282,7 +282,9 @@ static void create_output_files() {
if (!strcmp(tracks[i].codec_id, MKV_S_TEXTUTF8))
tracks[i].type = TYPESRT;
else if (!strcmp(tracks[i].codec_id, MKV_S_TEXTSSA) ||
!strcmp(tracks[i].codec_id, MKV_S_TEXTASS))
!strcmp(tracks[i].codec_id, MKV_S_TEXTASS) ||
!strcmp(tracks[i].codec_id, "S_SSA") ||
!strcmp(tracks[i].codec_id, "S_ASS"))
tracks[i].type = TYPESSA;
else {
mxwarn("Unsupported CodecID '%s' for ID %lld. "