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/smjpegenc.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libavformat/smjpegenc.c') diff --git a/libavformat/smjpegenc.c b/libavformat/smjpegenc.c index 0a2768785a..430a497c6e 100644 --- a/libavformat/smjpegenc.c +++ b/libavformat/smjpegenc.c @@ -109,7 +109,6 @@ static int smjpeg_write_packet(AVFormatContext *s, AVPacket *pkt) avio_wb32(pb, pkt->pts); avio_wb32(pb, pkt->size); avio_write(pb, pkt->data, pkt->size); - avio_flush(pb); smc->duration = FFMAX(smc->duration, pkt->pts + pkt->duration); return 0; -- cgit v1.2.3