[FFmpeg-cvslog] r24777 - trunk/libavformat/mmst.c
rbultje
subversion
Thu Aug 12 00:27:30 CEST 2010
Author: rbultje
Date: Thu Aug 12 00:27:29 2010
New Revision: 24777
Log:
Use FFALIGN() in mmst.c where appropriate. Noticed by Benoit Fouet.
Modified:
trunk/libavformat/mmst.c
Modified: trunk/libavformat/mmst.c
==============================================================================
--- trunk/libavformat/mmst.c Wed Aug 11 18:22:16 2010 (r24776)
+++ trunk/libavformat/mmst.c Thu Aug 12 00:27:29 2010 (r24777)
@@ -155,7 +155,7 @@ static void insert_command_prefixes(MMSC
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;
More information about the ffmpeg-cvslog
mailing list