aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-08-11 22:27:29 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-08-11 22:27:29 +0000
commita46cd6e14138b8a361f5d48f003894ccd404acdf (patch)
tree022e050b89d67c16f5d7e69c3544b9a826ebf256 /libavformat
parenta4fb0ada0beebb0bb58ce071b87799c2eac336e7 (diff)
downloadffmpeg-a46cd6e14138b8a361f5d48f003894ccd404acdf.tar.gz
Use FFALIGN() in mmst.c where appropriate. Noticed by Benoit Fouet.
Originally committed as revision 24777 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mmst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mmst.c b/libavformat/mmst.c
index 26975f524a..32e98f7812 100644
--- a/libavformat/mmst.c
+++ b/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;