shithub: openh264

Download patch

ref: a5f5b37a25837f1f66f5910d93d3681599636f62
parent: c7ff8876bb228e9aea34db890d22ac87e940cb87
author: Martin Storsjö <[email protected]>
date: Wed Feb 26 17:13:59 EST 2014

Renumber vtable entries in the C ABI test

--- a/test/c_interface_test.c
+++ b/test/c_interface_test.c
@@ -12,14 +12,14 @@
 void CheckEncoderInterface(ISVCEncoder* p, CheckFunc check) {
   CHECK(1, p, Initialize);
   CHECK(2, p, InitializeExt);
-  CHECK(10, p, GetDefaultParams);
-  CHECK(3, p, Uninitialize);
-  CHECK(4, p, EncodeFrame);
-  CHECK(5, p, EncodeParameterSets);
-  CHECK(6, p, PauseFrame);
-  CHECK(7, p, ForceIntraFrame);
-  CHECK(8, p, SetOption);
-  CHECK(9, p, GetOption);
+  CHECK(3, p, GetDefaultParams);
+  CHECK(4, p, Uninitialize);
+  CHECK(5, p, EncodeFrame);
+  CHECK(6, p, EncodeParameterSets);
+  CHECK(7, p, PauseFrame);
+  CHECK(8, p, ForceIntraFrame);
+  CHECK(9, p, SetOption);
+  CHECK(10, p, GetOption);
 }
 
 void CheckDecoderInterface(ISVCDecoder* p, CheckFunc check) {
--- a/test/cpp_interface_test.cpp
+++ b/test/cpp_interface_test.cpp
@@ -32,37 +32,37 @@
   }
   virtual int EXTAPI GetDefaultParams(SEncParamExt* pParam) {
     EXPECT_TRUE(gThis == this);
-    return 10;
+    return 3;
   }
   virtual int EXTAPI Uninitialize() {
     EXPECT_TRUE(gThis == this);
-    return 3;
+    return 4;
   }
   virtual int EXTAPI EncodeFrame(const SSourcePicture* kpSrcPic,
       SFrameBSInfo* pBsInfo) {
     EXPECT_TRUE(gThis == this);
-    return 4;
+    return 5;
   }
   virtual int EXTAPI EncodeParameterSets(SFrameBSInfo* pBsInfo) {
     EXPECT_TRUE(gThis == this);
-    return 5;
+    return 6;
   }
   virtual int EXTAPI PauseFrame(const SSourcePicture* kpSrcPic,
       SFrameBSInfo* pBsInfo) {
     EXPECT_TRUE(gThis == this);
-    return 6;
+    return 7;
   }
   virtual int EXTAPI ForceIntraFrame(bool bIDR) {
     EXPECT_TRUE(gThis == this);
-    return 7;
+    return 8;
   }
   virtual int EXTAPI SetOption(ENCODER_OPTION eOptionId, void* pOption) {
     EXPECT_TRUE(gThis == this);
-    return 8;
+    return 9;
   }
   virtual int EXTAPI GetOption(ENCODER_OPTION eOptionId, void* pOption) {
     EXPECT_TRUE(gThis == this);
-    return 9;
+    return 10;
   }
 };