ref: 36b7f577fa889912acbf54d7dd7a9d1d19422608
parent: 5545fbe0a0152a0e12e63626350ed4fc815fe5a1
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Mon Jul 10 09:10:28 EDT 2017
Avoid crashing when setting the muxing delay early
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -834,7 +834,7 @@
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: