diff options
author | James Almer <jamrial@gmail.com> | 2016-04-16 21:31:58 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-04-16 21:31:58 -0300 |
commit | b63ba3a51782baca737e646110f4832f8abbaadd (patch) | |
tree | ca4e79112cb20a4f82358485677c55202b482e1d /libavformat/hashenc.c | |
parent | 487c346d98c0180eb8e4066c2c341a2a19f7f0af (diff) | |
download | ffmpeg-b63ba3a51782baca737e646110f4832f8abbaadd.tar.gz |
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.c | 1 |
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; |