-
Mark Harris authored
If the stream is drained without writing any audio and the frame size is smaller than the encoder latency, the assertion (enc->streams == NULL) would fail because pad_samples was computed using an incorrect value of enc->global_granule_offset before it was set in init_stream(), causing the padding to be insufficient to drain the stream.