Oh, there is a problem with return codes.
av_interleaved_write_frame:
* @return 0 on success, a negative AVERROR on error.
av_write_frame:
* @return < 0 on error, = 0 if OK, 1 if flushed and there is no more data
to flush
I could:
- add "1" to the list of possible return codes of
av_interleave
Hi.
Currently, there is no legitimate way to flush data buffered within the
muxer for applications that choose to use av_interleaved_write_frame.
Actually one could flush muxer buffers with av_write_frame, but docs forbid
mixing av_interleaved_write_frame/av_write_frame within a single muxing
cont