diff options
author | Marton Balint <cus@passwd.hu> | 2019-12-27 14:18:20 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2020-01-07 21:51:45 +0100 |
commit | 4d7f8254ac11e207f49348978231a6c4656d43e8 (patch) | |
tree | 5418a05a307186fa149e7701a0d26cff22d1d2d7 /libavformat/hlsenc.c | |
parent | 37d24a6c8fdff897c5e01a8767bfcdc9ddf1f003 (diff) | |
download | ffmpeg-4d7f8254ac11e207f49348978231a6c4656d43e8.tar.gz |
avformat: remove unneeded avio_flush() calls before calling avio_close_dyn_buf()
avio_close_dyn_buf() also does avio_flush().
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r-- | libavformat/hlsenc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 561e3ff736..d130f03ea6 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -459,7 +459,6 @@ static int flush_dynbuf(VariantStream *vs, int *range_length) // flush av_write_frame(ctx, NULL); - avio_flush(ctx->pb); // write out to file *range_length = avio_close_dyn_buf(ctx->pb, &vs->temp_buffer); @@ -2548,7 +2547,6 @@ static int hls_write_trailer(struct AVFormatContext *s) if (!vs->init_range_length) { uint8_t *buffer = NULL; av_write_frame(oc, NULL); /* Flush any buffered data */ - avio_flush(oc->pb); range_length = avio_close_dyn_buf(oc->pb, &buffer); avio_write(vs->out, buffer, range_length); |