shithub: openh264

Download patch

ref: 4f33b38ac16bfb7420f495da08754e6bba397410
parent: b83b19254db201f9153d89d989b2d9f8b00e5b5e
author: Martin Storsjö <[email protected]>
date: Fri Jan 16 05:50:01 EST 2015

Move a conversion from size_t to int into one single place within BaseDecoderTest.cpp

--- a/test/BaseDecoderTest.h
+++ b/test/BaseDecoderTest.h
@@ -37,7 +37,7 @@
   ISVCDecoder* decoder_;
 
  private:
-  void DecodeFrame (const uint8_t* src, int sliceSize, Callback* cbk);
+  void DecodeFrame (const uint8_t* src, size_t sliceSize, Callback* cbk);
 
   std::ifstream file_;
   BufferedData buf_;
--- a/test/api/BaseDecoderTest.cpp
+++ b/test/api/BaseDecoderTest.cpp
@@ -70,13 +70,13 @@
 }
 
 
-void BaseDecoderTest::DecodeFrame (const uint8_t* src, int sliceSize, Callback* cbk) {
+void BaseDecoderTest::DecodeFrame (const uint8_t* src, size_t sliceSize, Callback* cbk) {
   uint8_t* data[3];
   SBufferInfo bufInfo;
   memset (data, 0, sizeof (data));
   memset (&bufInfo, 0, sizeof (SBufferInfo));
 
-  DECODING_STATE rv = decoder_->DecodeFrame2 (src, sliceSize, data, &bufInfo);
+  DECODING_STATE rv = decoder_->DecodeFrame2 (src, (int) sliceSize, data, &bufInfo);
   ASSERT_TRUE (rv == dsErrorFree);
 
   if (bufInfo.iBufferStatus == 1 && cbk != NULL) {