Unverified Commit 36b7f577 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Avoid crashing when setting the muxing delay early

parent 5545fbe0
......@@ -834,7 +834,7 @@ int ope_encoder_ctl(OggOpusEnc *enc, int request, ...) {
break;
}
enc->max_ogg_delay = value;
oggp_set_muxing_delay(enc->oggp, enc->max_ogg_delay);
if (enc->oggp) oggp_set_muxing_delay(enc->oggp, enc->max_ogg_delay);
}
break;
case OPE_GET_MUXING_DELAY_REQUEST:
......
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