From a46cd6e14138b8a361f5d48f003894ccd404acdf Mon Sep 17 00:00:00 2001
From: "Ronald S. Bultje" <rsbultje@gmail.com>
Date: Wed, 11 Aug 2010 22:27:29 +0000
Subject: [PATCH] Use FFALIGN() in mmst.c where appropriate. Noticed by Benoit
 Fouet.

Originally committed as revision 24777 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/mmst.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mmst.c b/libavformat/mmst.c
index 26975f524a7..32e98f78129 100644
--- a/libavformat/mmst.c
+++ b/libavformat/mmst.c
@@ -155,7 +155,7 @@ static void insert_command_prefixes(MMSContext *mms,
 static int send_command_packet(MMSContext *mms)
 {
     int len= mms->write_out_ptr - mms->out_buffer;
-    int exact_length = (len + 7) & ~7;
+    int exact_length = FFALIGN(len, 8);
     int first_length= exact_length - 16;
     int len8= first_length/8;
     int write_result;
-- 
GitLab