1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Originally committed as revision 24777 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ronald S. Bultje 2010-08-11 22:27:29 +00:00
parent a4fb0ada0b
commit a46cd6e141

View 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;