shithub: openh264

Download patch

ref: c4a59690da68876632c412e3cf2e5f253c07b442
parent: 1bccef940c28f6eef637daca22f3e89b2b57b117
author: Martin Storsjö <[email protected]>
date: Tue Jun 10 11:19:51 EDT 2014

Allow setting the trace level before initializing the encoder

--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -548,7 +548,7 @@
     return cmInitParaError;
   }
 
-  if (NULL == m_pEncContext || false == m_bInitialFlag) {
+  if ((NULL == m_pEncContext || false == m_bInitialFlag) && eOptionId != ENCODER_OPTION_TRACE_LEVEL) {
     return cmInitExpected;
   }