summaryrefslogtreecommitdiff
path: root/libavformat/soxenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-12-28 21:36:03 +0000
committerPaul B Mahol <onemda@gmail.com>2012-12-28 21:37:08 +0000
commita4912aa61e101945442d4d842876a0986efbaf73 (patch)
treeb2090c0a026eb491650d383761a64b461444028b /libavformat/soxenc.c
parent07abf13da4a7c3d23ce6bc6542d72e6252161736 (diff)
soxenc: use FFALIGN
Signed-off-by: Paul B Mahol <onemda@gmail.com>
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;