Skip to content
Snippets Groups Projects
Commit a46cd6e1 authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -155,7 +155,7 @@ static void insert_command_prefixes(MMSContext *mms, ...@@ -155,7 +155,7 @@ static void insert_command_prefixes(MMSContext *mms,
static int send_command_packet(MMSContext *mms) static int send_command_packet(MMSContext *mms)
{ {
int len= mms->write_out_ptr - mms->out_buffer; 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 first_length= exact_length - 16;
int len8= first_length/8; int len8= first_length/8;
int write_result; int write_result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment