mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/webm_chunk: Avoid unnecessary flushes
The webm_chunk muxer caches its output to a dynamic buffer and when it outputs anything, it explicitly flushes it. So set the flags indicating that flushing after each packet should not be done automatically (basically avoiding avio_write_marker() to be called by flush_if_needed() in libavformat/mux.c). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
e70c2d02fc
commit
3d4dd9195f
@ -72,10 +72,12 @@ static int chunk_mux_init(AVFormatContext *s)
|
||||
|
||||
oc->interrupt_callback = s->interrupt_callback;
|
||||
oc->max_delay = s->max_delay;
|
||||
oc->flags = s->flags;
|
||||
oc->flags = s->flags & ~AVFMT_FLAG_FLUSH_PACKETS;
|
||||
oc->strict_std_compliance = s->strict_std_compliance;
|
||||
oc->avoid_negative_ts = s->avoid_negative_ts;
|
||||
|
||||
oc->flush_packets = 0;
|
||||
|
||||
av_dict_copy(&oc->metadata, s->metadata, 0);
|
||||
|
||||
if (!(st = avformat_new_stream(oc, NULL)))
|
||||
|
Loading…
Reference in New Issue
Block a user