From 9edcf7492ec9b6a8bc45f28ad45276b78019423a Mon Sep 17 00:00:00 2001 From: ruil2 Date: Mon, 8 Jan 2018 14:19:36 +0800 Subject: [PATCH] fix error ouputfile setting --- codec/console/enc/src/welsenc.cpp | 4 ++++ testbin/welsenc_arbitrary_res.cfg | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/codec/console/enc/src/welsenc.cpp b/codec/console/enc/src/welsenc.cpp index 342c5fe1..98957b39 100644 --- a/codec/console/enc/src/welsenc.cpp +++ b/codec/console/enc/src/welsenc.cpp @@ -856,6 +856,10 @@ int ProcessEncoding (ISVCEncoder* pPtrEnc, int argc, char** argv, bool bConfigFi iRet = 1; goto INSIDE_MEM_FREE; } + } else { + fprintf (stderr, "Don't set the proper bitstream filename!\n"); + iRet = 1; + goto INSIDE_MEM_FREE; } #if defined(COMPARE_DATA) diff --git a/testbin/welsenc_arbitrary_res.cfg b/testbin/welsenc_arbitrary_res.cfg index 45353d46..d402143d 100644 --- a/testbin/welsenc_arbitrary_res.cfg +++ b/testbin/welsenc_arbitrary_res.cfg @@ -6,7 +6,7 @@ SimulcastAVC 0 # 0: use SVC syntax for higher l SourceWidth 152 # Input frame width SourceHeight 100 # Input frame height InputFile ../res/Static_152_100.yuv # Input file -wutputFile Static.264 # Bitstream file +OutputFile Static.264 # Bitstream file MaxFrameRate 30 # Maximum frame rate [Hz] FramesToBeEncoded -1 # Number of frames (at input frame rate)