From 4d7f8254ac11e207f49348978231a6c4656d43e8 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Fri, 27 Dec 2019 14:18:20 +0100 Subject: avformat: remove unneeded avio_flush() calls before calling avio_close_dyn_buf() avio_close_dyn_buf() also does avio_flush(). Signed-off-by: Marton Balint --- libavformat/rtpdec.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavformat/rtpdec.c') diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index e75a34cb93..3d5b200099 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -415,7 +415,6 @@ void ff_rtp_send_punch_packets(URLContext *rtp_handle) avio_wb32(pb, 0); /* Timestamp */ avio_wb32(pb, 0); /* SSRC */ - avio_flush(pb); len = avio_close_dyn_buf(pb, &buf); if ((len > 0) && buf) ffurl_write(rtp_handle, buf, len); @@ -430,7 +429,6 @@ void ff_rtp_send_punch_packets(URLContext *rtp_handle) avio_wb16(pb, 1); /* length in words - 1 */ avio_wb32(pb, 0); /* our own SSRC */ - avio_flush(pb); len = avio_close_dyn_buf(pb, &buf); if ((len > 0) && buf) ffurl_write(rtp_handle, buf, len); -- cgit v1.2.3