Unverified Commit e7ce79de authored by Dragos Oancea's avatar Dragos Oancea Committed by Jean-Marc Valin
Browse files

some extra checks to avoid crashing



(modified by Jean-Marc Valin)
Signed-off-by: Jean-Marc Valin's avatarJean-Marc Valin <jmvalin@jmvalin.ca>
parent ac6b2112
......@@ -368,7 +368,7 @@ fail:
/* Create a new OggOpus stream, pulling one page at a time. */
OPE_EXPORT OggOpusEnc *ope_encoder_create_pull(OggOpusComments *comments, opus_int32 rate, int channels, int family, int *error) {
OggOpusEnc *enc = ope_encoder_create_callbacks(NULL, NULL, comments, rate, channels, family, error);
enc->pull_api = 1;
if (enc) enc->pull_api = 1;
return enc;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment