mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 07:40:00 +08: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:
@ -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_hash_final_hex(c->hash, buf + strlen(buf), sizeof(buf) - strlen(buf));
|
||||||
av_strlcatf(buf, sizeof(buf), "\n");
|
av_strlcatf(buf, sizeof(buf), "\n");
|
||||||
avio_write(s->pb, buf, strlen(buf));
|
avio_write(s->pb, buf, strlen(buf));
|
||||||
|
avio_flush(s->pb);
|
||||||
|
|
||||||
av_hash_freep(&c->hash);
|
av_hash_freep(&c->hash);
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user