Skip to content

Commit

Permalink
protobuf_widevine: Make protection_scheme constants less magic
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Aug 18, 2023
1 parent 0e27492 commit 456a6a4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions format/protobuf/protobuf_widevine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}},
}

Expand Down

0 comments on commit 456a6a4

Please sign in to comment.