[FFmpeg Decoder] Further improve Matroska tags

Matroska defaults the date field to "date_recorded".

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
xcode15
Christopher Snowhill 2022-07-05 18:11:45 -07:00
parent de72631ea5
commit 3958af0670
1 changed files with 2 additions and 1 deletions

View File

@ -591,7 +591,8 @@ static uint8_t reverse_bits[0x100];
} else { } else {
_title = _tag; _title = _tag;
} }
} else if(!strcasecmp(tag->key, "date")) { } else if(!strcasecmp(tag->key, "date") ||
!strcasecmp(tag->key, "date_recorded")) {
NSString *dateString = guess_encoding_of_string(tag->value); NSString *dateString = guess_encoding_of_string(tag->value);
_year = @([dateString intValue]); _year = @([dateString intValue]);
} else if(!strcasecmp(tag->key, "track")) { } else if(!strcasecmp(tag->key, "track")) {