Commit a46cd6e1 authored by Ronald S. Bultje's avatar Ronald S. Bultje

Use FFALIGN() in mmst.c where appropriate. Noticed by Benoit Fouet.

Originally committed as revision 24777 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a4fb0ada
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment