Use FFALIGN() in mmst.c where appropriate. Noticed by Benoit Fouet.
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 11 Aug 2010 22:27:29 +0000 (22:27 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 11 Aug 2010 22:27:29 +0000 (22:27 +0000)
Originally committed as revision 24777 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mmst.c

index 26975f5..32e98f7 100644 (file)
@@ -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;