shithub: openh264

Download patch

ref: 83e7e7fbd957ae18d5bde510ea1abfa35d29b866
parent: 3e13874a77196c53d561e4901b14025f30b1195d
author: Martin Storsjö <martin@martin.st>
date: Sat Feb 8 19:35:18 EST 2014

Show the right message if no output file has been specified

H264DecodeInstance expects the pointer to be a null pointer if
no file has been specified.

--- a/codec/console/dec/src/h264dec.cpp
+++ b/codec/console/dec/src/h264dec.cpp
@@ -445,7 +445,7 @@
   int32_t iHeight = 0;
 
 
-  H264DecodeInstance (pDecoder, strInputFile.c_str(), strOutputFile.c_str(), iWidth, iHeight,
+  H264DecodeInstance (pDecoder, strInputFile.c_str(), !strOutputFile.empty() ? strOutputFile.c_str() : NULL, iWidth, iHeight,
                       (!strOptionFile.empty() ? strOptionFile.c_str() : NULL));
 
   if (sDecParam.pFileNameRestructed != NULL) {