flvenc: dont call avio_flush() unconditional
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 8 Apr 2013 11:31:53 +0000 (13:31 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 8 Apr 2013 11:31:53 +0000 (13:31 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/flvenc.c

index e1dd43f..b35c4cf 100644 (file)
@@ -569,7 +569,6 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
                               pkt->pts + flv->delay + pkt->duration);
     }
 
-    avio_flush(pb);
     av_free(data);
 
     return pb->error;