shithub: openh264

Download patch

ref: 622694935b38495af1a5249220debf2a97c3789c
parent: a899f05f2dc914651c521832811a5e07468d3e90
author: Martin Storsjö <[email protected]>
date: Tue Feb 18 07:29:00 EST 2014

Use SEncParamExt in ProcessEncodingSvcWithParam

Both FillSpecificParameters and ParseCommandLine use parameters
that don't exist in SEncParamBase.

--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -752,7 +752,7 @@
   }
 
   memset (&sFbi, 0, sizeof (SFrameBSInfo));
-  memset (&sSvcParam, 0, sizeof (SEncParamBase));
+  memset (&sSvcParam, 0, sizeof (SEncParamExt));
 
   FillSpecificParameters (sSvcParam);
 
@@ -763,7 +763,7 @@
     goto ERROR_RET;
   }
 
-  if (cmResultSuccess != pPtrEnc->Initialize (&sSvcParam, INIT_TYPE_PARAMETER_BASED)) {
+  if (cmResultSuccess != pPtrEnc->Initialize (&sSvcParam, INIT_TYPE_PARAMETER_EXT)) {
     fprintf (stderr, "Encoder Initialization failed!\n");
 	ret = 1;
     goto ERROR_RET;