shithub: openh264

Download patch

ref: 43814000e4c459a432102de84a8cf87ad59207f0
parent: 33a1209a21a9b38eafc5f26bb6543c8b4c9b75ba
author: Martin Storsjö <martin@martin.st>
date: Thu Feb 6 05:50:31 EST 2014

Open output files in binary mode in the testsuite

This fixes 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;