| 795 | } |
| 796 | |
| 797 | void copyWithStartCode(std::vector<uint8_t>& out, const uint8_t* in, size_t size) { |
| 798 | static const uint8_t code[] = { 0x00, 0x00, 0x00, 0x01 }; |
| 799 | out.insert(out.end(), code, code + sizeof(code)); |
| 800 | out.insert(out.end(), in, in + size); |
| 801 | } |
| 802 | |
| 803 | class OpenH264VideoDecoder : public GMPVideoDecoder, public RefCounted { |
| 804 | public: |