Address of a pointer variable can never be NULL.
Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1203,11 +1203,6 @@ void CWelsH264SVCEncoder::DumpSrcPicture (const uint8_t* pSrc) { · 1202 unmodified lines | |||
| 1203 | using namespace WelsSVCEnc; | 1203 | using namespace WelsSVCEnc; |
| 1204 | 1204 | ||
| 1205 | int32_t CreateSVCEncoder (ISVCEncoder** ppEncoder) { | 1205 | int32_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 | } |