summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-03 17:46:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-03 18:10:04 +0200
commit6cdf409884bd2eef95bb478dfb04c1149dade155 (patch)
tree3453e892535971c5b72f378a98c942ce3fce1965 /libavformat
parentfee982048e338efd3b8c1b2dcaf826cb7944cd81 (diff)
avformat/mpegtsenc: do not flush after everything
there is flushing code in the avformat core that does this in a more controlled way. Fixes ticket2748 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mpegtsenc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index a4a32e0e16..aebf99840a 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -746,8 +746,6 @@ static int mpegts_write_header(AVFormatContext *s)
}
}
- avio_flush(s->pb);
-
return 0;
fail:
@@ -1139,7 +1137,6 @@ static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
mpegts_prefix_m2ts_header(s);
avio_write(s->pb, buf, TS_PACKET_SIZE);
}
- avio_flush(s->pb);
ts_st->prev_payload_key = key;
}
@@ -1312,7 +1309,6 @@ static void mpegts_write_flush(AVFormatContext *s)
ts_st->payload_size = 0;
}
}
- avio_flush(s->pb);
}
static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt)