Mercurial > libavformat.hg
changeset 6366:d4691e73420f libavformat
Use FFALIGN() in mmst.c where appropriate. Noticed by Benoit Fouet.
author | rbultje |
---|---|
date | Wed, 11 Aug 2010 22:27:29 +0000 |
parents | c8ba3c854868 |
children | c58f5d360b4e |
files | mmst.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;