Test the FlushFrame function in the C ABI
Unified · Split
| @@ -31,6 +31,7 @@ void CheckDecoderInterface (ISVCDecoder* p, CheckFunc check) { · 30 unmodified lines | |||
| 31 | CHECK (7, p, DecodeParser); | 31 | CHECK (7, p, DecodeParser); |
| 32 | CHECK (8, p, SetOption); | 32 | CHECK (8, p, SetOption); |
| 33 | CHECK (9, p, GetOption); | 33 | CHECK (9, p, GetOption); |
| 34 | CHECK (10, p, FlushFrame); | ||
| 34 | } | 35 | } |
| 35 | 36 | ||
| 36 | struct bool_test_struct { | 37 | struct bool_test_struct { |
| @@ -89,7 +89,7 @@ struct SVCDecoderImpl : public ISVCDecoder { · 88 unmodified lines | |||
| 89 | } | 89 | } |
| 90 | virtual DECODING_STATE EXTAPI FlushFrame (unsigned char** ppDst, SBufferInfo* pDstInfo) { | 90 | virtual DECODING_STATE EXTAPI FlushFrame (unsigned char** ppDst, SBufferInfo* pDstInfo) { |
| 91 | EXPECT_TRUE (gThis == this); | 91 | EXPECT_TRUE (gThis == this); |
| 92 | return static_cast<DECODING_STATE> (5); | 92 | return static_cast<DECODING_STATE> (10); |
| 93 | } | 93 | } |
| 94 | virtual DECODING_STATE EXTAPI DecodeFrameEx (const unsigned char* pSrc, | 94 | virtual DECODING_STATE EXTAPI DecodeFrameEx (const unsigned char* pSrc, |
| 95 | const int iSrcLen, unsigned char* pDst, int iDstStride, | 95 | const int iSrcLen, unsigned char* pDst, int iDstStride, |