History

Remove redundant NULL check

Address of a pointer variable can never be NULL.

Varun B Patil committed 12 years ago

Commit 077c29a1 parent 42097a61 file · +0 −5Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+0−5
@@ -1203,11 +1203,6 @@ void CWelsH264SVCEncoder::DumpSrcPicture (const uint8_t* pSrc) { · 1202 unmodified lines
12031203 using namespace WelsSVCEnc;
12041204
12051205 int32_t CreateSVCEncoder (ISVCEncoder** ppEncoder) {
1206− assert (ppEncoder);
1207−
1208− if (NULL == ppEncoder)
1209− return 1;
1210−
12111206 if ((*ppEncoder = new CWelsH264SVCEncoder()) != NULL) {
12121207 return 0;
12131208 }

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