shithub: openh264

Download patch

ref: 5bdda25ba305da5b55e74c554d986fc8240c1088
parent: 33a1209a21a9b38eafc5f26bb6543c8b4c9b75ba
parent: 3a1bc927789a81c608b09e582b2f2aa0e66bac15
author: Ethan Hugg <ethanhugg@gmail.com>
date: Thu Feb 6 02:29:37 EST 2014

Merge pull request #265 from mstorsjo/fix-tests-windows

Fix building/running tests on windows

--- a/test/BaseDecoderTest.cpp
+++ b/test/BaseDecoderTest.cpp
@@ -131,7 +131,7 @@
 
 bool BaseDecoderTest::Open(const char* fileName) {
   if (decodeStatus_ == OpenFile) {
-    file_.open(fileName);
+    file_.open(fileName, std::ios_base::out | std::ios_base::binary);
     if (file_.is_open()) {
       decodeStatus_ = Decoding;
       return true;
--- a/test/utils/BufferedData.h
+++ b/test/utils/BufferedData.h
@@ -4,6 +4,7 @@
 #include <stddef.h>
 #include <stdlib.h>
 #include <stdint.h>
+#include <algorithm>
 
 class BufferedData {
  public: