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.
This commit is contained in:
Martin Storsjö 2014-02-09 00:35:18 +02:00
parent 3e13874a77
commit 83e7e7fbd9

View File

@ -445,7 +445,7 @@ int32_t main (int32_t iArgC, char* pArgV[]) {
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) {