Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avformat/assenc: do not copy null terminator
The `par->extradata` buffer filled from some matroska files may be null terminated, and use `ffio_write_lines` using the full buffer length will copy this null character into the output files. This results in a file in which there is a null terminator after the header, but preceeding the actual content of the subtitle file. Treat this buffer as a string and write line with the text length of this buffer to skip the null character. Regression from 7bf1b9b
- Loading branch information