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
1203using namespace WelsSVCEnc;1203using namespace WelsSVCEnc;
1204 1204
1205int32_t CreateSVCEncoder (ISVCEncoder** ppEncoder) {1205int32_t CreateSVCEncoder (ISVCEncoder** ppEncoder) {
1206 assert (ppEncoder);
1207
1208 if (NULL == ppEncoder)
1209 return 1;
1210
1211 if ((*ppEncoder = new CWelsH264SVCEncoder()) != NULL) {1206 if ((*ppEncoder = new CWelsH264SVCEncoder()) != NULL) {
1212 return 0;1207 return 0;
1213 }1208 }

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