1
1
mirror of https://github.com/wader/fq.git synced 2024-09-11 20:07:11 +03:00

Merge pull request #748 from wader/protobuf_widevine-protection_scheme-fourcc

protobuf_widevine: Make protection_scheme constants less magic
This commit is contained in:
Mattias Wadman 2023-08-18 11:35:28 +02:00 committed by GitHub
commit 28a59f7903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,10 +36,11 @@ func widevineDecode(d *decode.D) any {
7: {Type: format.ProtoBufTypeUInt32, Name: "crypto_period_index"},
8: {Type: format.ProtoBufTypeBytes, Name: "grouped_license"},
9: {Type: format.ProtoBufTypeUInt32, Name: "protection_scheme", Enums: scalar.UintMapSymStr{
1667591779: "cenc",
1667392305: "cbc1",
1667591795: "cens",
1667392371: "cbcs",
// FourCC
0x63_65_6e_63: "cenc",
0x63_62_63_31: "cbc1",
0x63_65_6e_73: "cens",
0x63_62_63_73: "cbcs",
}},
}