[vpx] Store VPXDecoder codec as an enum

Use the enum we already have here instead of converting to an int when we pass it around, giving us better type checking.
This commit is contained in:
trav90 2018-10-08 21:10:31 -05:00 committed by Roy Tam
commit 0c88f36323
2 changed files with 5 additions and 4 deletions

View file

@ -36,7 +36,8 @@ public:
enum Codec: uint8_t {
VP8 = 1 << 0,
VP9 = 1 << 1
VP9 = 1 << 1,
Unknown = 1 << 7,
};
// Return true if aMimeType is a one of the strings used by our demuxers to
@ -61,7 +62,7 @@ private:
const VideoInfo& mInfo;
const int mCodec;
const Codec mCodec;
};
} // namespace mozilla