soxenc: use FFALIGN
authorPaul B Mahol <onemda@gmail.com>
Fri, 28 Dec 2012 21:36:03 +0000 (21:36 +0000)
committerPaul B Mahol <onemda@gmail.com>
Fri, 28 Dec 2012 21:37:08 +0000 (21:37 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/soxenc.c

index 6b4412d..9a7a4f4 100644 (file)
@@ -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;