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

Fix granulepos bug on empty streams

parent 54690716
......@@ -654,6 +654,7 @@ int ope_encoder_continue_new_callbacks(OggOpusEnc *enc, void *user_data, const O
new_stream = stream_create(comments);
if (!new_stream) return OPE_ALLOC_FAIL;
new_stream->user_data = user_data;
new_stream->end_granule = enc->write_granule;
enc->last_stream->next = new_stream;
enc->last_stream = new_stream;
return OPE_OK;
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