On Fri, Jul 8, 2016 at 12:33 PM, Sami Hult <sami.h...@gmail.com> wrote: > Let me rephrase: avio_put_str, which in my patch is used instead of > (forbidden) printf, outputs the terminating null-character with the string. >
avio_put_str is intentionally designed to write the null-character as termination as well, since its typical use is writing single strings into media files - and those should be null-terminated. If you want to write a text file, this is probably not the right function. An alternative might be using the bprint API functions, and store the string in memory until its complete. - Hendrik _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel