Rollup of minor fixes found by Martin Ettl
This commit is contained in:
parent
1ca805cd85
commit
c97be377b1
@ -905,11 +905,13 @@ int ProcessEncodingSvcWithParam (ISVCEncoder* pPtrEnc, int argc, char** argv) {
|
||||
int iParsedNum = 3;
|
||||
if (ParseCommandLine (argc - iParsedNum, argv + iParsedNum, sSvcParam) != 0) {
|
||||
printf ("parse pCommand line failed\n");
|
||||
fclose(pFpSrc);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (cmResultSuccess != pPtrEnc->Initialize (&sSvcParam, INIT_TYPE_PARAMETER_BASED)) {
|
||||
fprintf (stderr, "Encoder Initialization failed!\n");
|
||||
fclose(pFpSrc);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -480,6 +480,5 @@ long CreateDecoder (ISVCDecoder** ppDecoder) {
|
||||
void_t DestroyDecoder (ISVCDecoder* pDecoder) {
|
||||
if (NULL != pDecoder) {
|
||||
delete (CWelsDecoder*)pDecoder;
|
||||
pDecoder = NULL;
|
||||
}
|
||||
}
|
||||
|
@ -488,7 +488,7 @@ int32_t RequestMtResource (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPara
|
||||
err = WelsEventOpen (&pSmt->pReadySliceCodingEvent[iIdx], name);
|
||||
#if defined(ENABLE_TRACE_MT)
|
||||
WelsLog ((*ppCtx), WELS_LOG_INFO, "[MT] Open pReadySliceCodingEvent%d = 0x%p named(%s) ret%d err%d\n", iIdx,
|
||||
(void*)pSmt->pReadySliceCodingEvent[iIdx]), (void*) (*ppCtx), err, errno);
|
||||
(void*)pSmt->pReadySliceCodingEvent[iIdx], (void*) (*ppCtx), err, errno);
|
||||
#endif
|
||||
#endif//_WIN32
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user