From 8de9bb6e5e527e2bcc8b2cff2da4107ecef23421 Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Mon, 25 Mar 2013 00:23:46 +0100 Subject: lavf: remove some flushing in write_packet muxers callbacks. Since 4f112a8e3, this is not necessary anymore. Also, it allows to actually disable the flushing. --- libavformat/rmenc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavformat/rmenc.c') diff --git a/libavformat/rmenc.c b/libavformat/rmenc.c index a96c42933d..17192ff275 100644 --- a/libavformat/rmenc.c +++ b/libavformat/rmenc.c @@ -374,7 +374,6 @@ static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size, int } else { avio_write(pb, buf, size); } - avio_flush(pb); stream->nb_frames++; av_free(buf1); return 0; @@ -419,7 +418,6 @@ static int rm_write_video(AVFormatContext *s, const uint8_t *buf, int size, int avio_w8(pb, stream->nb_frames & 0xff); avio_write(pb, buf, size); - avio_flush(pb); stream->nb_frames++; return 0; -- cgit v1.2.3