encoder/opus: use nullptr instead of NULL

This commit is contained in:
Max Kellermann 2014-07-30 18:45:00 +02:00
parent 664fc76ac7
commit 430dd3ae05

View File

@ -120,7 +120,7 @@ opus_encoder_init(const config_param &param, Error &error)
if (!opus_encoder_configure(encoder, param, error)) {
/* configuration has failed, roll back and return error */
delete encoder;
return NULL;
return nullptr;
}
return &encoder->encoder;