[FFmpeg-cvslog] avformat/hashenc: add missing avio_flush to hash_write_trailer

James Almer git at videolan.org
Sun Apr 17 02:33:18 CEST 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Apr 16 21:31:58 2016 -0300| [b63ba3a51782baca737e646110f4832f8abbaadd] | committer: James Almer

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 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b63ba3a51782baca737e646110f4832f8abbaadd
---

 libavformat/hashenc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/hashenc.c b/libavformat/hashenc.c
index 01b00b5..a66db4a 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;



More information about the ffmpeg-cvslog mailing list