- add missing audio formats to message AudioFile

- ensure that unknown formats gets mapped to DEFAULT_FORMAT
This commit is contained in:
fivebanger 2024-09-18 23:45:30 +02:00 committed by GitHub
parent 1c148ad124
commit ce03deb6ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -18,6 +18,10 @@ message AudioFile {
MP3_160_ENC = 7;
AAC_24 = 8;
AAC_48 = 9;
AAC_160 = 10;
AAC_320 = 11;
MP4_128 = 12;
OTHER5 = 13;
FLAC_FLAC = 16;
}
}

View file

@ -288,7 +288,7 @@ message ExternalId {
message AudioFile {
optional bytes file_id = 1;
optional Format format = 2;
optional Format format = 2 [default = UNKNOWN_FORMAT];
enum Format {
OGG_VORBIS_96 = 0;
OGG_VORBIS_160 = 1;
@ -300,7 +300,12 @@ message AudioFile {
MP3_160_ENC = 7;
AAC_24 = 8;
AAC_48 = 9;
AAC_160 = 10;
AAC_320 = 11;
MP4_128 = 12;
OTHER5 = 13;
FLAC_FLAC = 16;
UNKNOWN_FORMAT = 255;
}
}