Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 3 files). Show all
Unified · Split
| @@ -258,6 +258,11 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 257 unmodified lines | |||
| 258 | return dsInitialOptExpected; | 258 | return dsInitialOptExpected; |
| 259 | 259 | ||
| 260 | if (eOptID == DECODER_OPTION_DATAFORMAT) { // Set color space of decoding output frame | 260 | if (eOptID == DECODER_OPTION_DATAFORMAT) { // Set color space of decoding output frame |
| 261 | if (m_pDecContext->bParseOnly) { | ||
| 262 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING, | ||
| 263 | "CWelsDecoder::SetOption for data format meaningless for parseonly."); | ||
| 264 | return cmResultSuccess; | ||
| 265 | } | ||
| 261 | if (pOption == NULL) | 266 | if (pOption == NULL) |
| 262 | return cmInitParaError; | 267 | return cmInitParaError; |
| 263 | 268 | ||