# HG changeset patch # User rbultje # Date 1281565649 0 # Node ID d4691e73420fcbf5b874434c32b4ff8e36ab06e7 # Parent c8ba3c854868c74c59cd041e13f1c213a0701246 Use FFALIGN() in mmst.c where appropriate. Noticed by Benoit Fouet. diff -r c8ba3c854868 -r d4691e73420f mmst.c --- a/mmst.c Wed Aug 11 14:38:19 2010 +0000 +++ b/mmst.c Wed Aug 11 22:27:29 2010 +0000 @@ -155,7 +155,7 @@ 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;