History

disable color format check for parse only

huili2 committed 11 years ago

Commit b12b39a1 parent 26ccd833 files · +11 −4Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 3 files). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+5−0
@@ -258,6 +258,11 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 257 unmodified lines
258258 return dsInitialOptExpected;
259259
260260 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+ }
261266 if (pOption == NULL)
262267 return cmInitParaError;
263268

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t