On Thu, 31 Jan 2019, Luca Barbato wrote:
--- libavformat/aviobuf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 98e35f776c..3c882d6bdb 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -244,7 +244,8 @@ void avio_write(AVIOContext *s, const unsigned char *buf, int size) void avio_flush(AVIOContext *s) { - flush_buffer(s); + if (!s->max_packet_size || s->buf_ptr - s->buffer >= s->max_packet_size) + flush_buffer(s); s->must_flush = 0; } -- 2.12.2
You're not providing any explanation to why we should do this. And I'm fairly sure that this patch breaks the RTP muxer when sending over plain UDP.
// Martin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
