Commit b63ba3a5 authored by James Almer's avatar James Almer

avformat/hashenc: add missing avio_flush to hash_write_trailer

It was accidentally deleted in the previous hashenc commit
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 487c346d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment