[FFmpeg-cvslog] soxenc: use FFALIGN

Paul B Mahol git at videolan.org
Fri Dec 28 22:44:42 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Dec 28 21:36:03 2012 +0000| [a4912aa61e101945442d4d842876a0986efbaf73] | committer: Paul B Mahol

soxenc: use FFALIGN

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a4912aa61e101945442d4d842876a0986efbaf73
---

 libavformat/soxenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/soxenc.c b/libavformat/soxenc.c
index 6b4412d..9a7a4f4 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;
 



More information about the ffmpeg-cvslog mailing list