
In the old version, the transcoder uses decoder.isEnded() alone as the criteria to stop the encoding/muxing process. It's rectified to: - On decoder ending, signal the encoder of EOS after writing all decoded frames to it. - On encoder ending, write end track to muxer. PiperOrigin-RevId: 393322114