1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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>
This commit is contained in:
James Almer 2016-04-16 21:31:58 -03:00
parent 487c346d98
commit b63ba3a517

View File

@ -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;