summaryrefslogtreecommitdiff
path: root/libavformat/soxenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/soxenc.c')
-rw-r--r--libavformat/soxenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/soxenc.c b/libavformat/soxenc.c
index 6b4412de18..9a7a4f41cf 100644
--- a/libavformat/soxenc.c
+++ b/libavformat/soxenc.c
@@ -51,7 +51,7 @@ static int sox_write_header(AVFormatContext *s)
comment = av_dict_get(s->metadata, "comment", NULL, 0);
if (comment)
comment_len = strlen(comment->value);
- comment_size = (comment_len + 7) & ~7;
+ comment_size = FFALIGN(comment_len, 8);
sox->header_size = SOX_FIXED_HDR + comment_size;