Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-04-17 03:31:58 +0300
committerJames Almer <jamrial@gmail.com>2016-04-17 03:31:58 +0300
commitb63ba3a51782baca737e646110f4832f8abbaadd (patch)
treeca4e79112cb20a4f82358485677c55202b482e1d /libavformat/hashenc.c
parent487c346d98c0180eb8e4066c2c341a2a19f7f0af (diff)
avformat/hashenc: add missing avio_flush to hash_write_trailer
It was accidentally deleted in the previous hashenc commit Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/hashenc.c')
-rw-r--r--libavformat/hashenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/hashenc.c b/libavformat/hashenc.c
index 01b00b5bb7..a66db4ae71 100644
--- a/libavformat/hashenc.c
+++ b/libavformat/hashenc.c
@@ -79,6 +79,7 @@ static int hash_write_trailer(struct AVFormatContext *s)
av_hash_final_hex(c->hash, buf + strlen(buf), sizeof(buf) - strlen(buf));
av_strlcatf(buf, sizeof(buf), "\n");
avio_write(s->pb, buf, strlen(buf));
+ avio_flush(s->pb);
av_hash_freep(&c->hash);
return 0;