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

Originally committed as revision 24777 to svn://svn.ffmpeg.org/ffmpeg/trunk
oldabi
Ronald S. Bultje 15 years ago
parent a4fb0ada0b
commit a46cd6e141
  1. 2
      libavformat/mmst.c

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

Loading…
Cancel
Save