From b63ba3a51782baca737e646110f4832f8abbaadd Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 16 Apr 2016 21:31:58 -0300 Subject: [PATCH] avformat/hashenc: add missing avio_flush to hash_write_trailer It was accidentally deleted in the previous hashenc commit Signed-off-by: James Almer --- libavformat/hashenc.c | 1 + 1 file changed, 1 insertion(+) 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;