[FFmpeg-cvslog] r24360 - trunk/libavformat/mmst.c

Benoit Fouet benoit.fouet
Tue Jul 20 17:19:31 CEST 2010


Hi,

On Tue, 20 Jul 2010 17:07:32 +0200 (CEST) rbultje wrote:
> Author: rbultje
> Date: Tue Jul 20 17:07:31 2010
> New Revision: 24360
> 
> Log:
> Align outgoing messages to 8 bytes, this is required to interact with
> most servers. Also remove a case where we manually aligned to 8 bytes,
> since this is now no longer needed.
> 
> Patch by Zhentan Feng <spyfeng gmail com>.
> 
> Modified:
>    trunk/libavformat/mmst.c
> 
> Modified: trunk/libavformat/mmst.c
> ==============================================================================
> --- trunk/libavformat/mmst.c	Tue Jul 20 17:05:45 2010	(r24359)
> +++ trunk/libavformat/mmst.c	Tue Jul 20 17:07:31 2010	(r24360)
> @@ -146,7 +146,8 @@ static void insert_command_prefixes(MMSC
>  /** Send a prepared MMST command packet. */
>  static int send_command_packet(MMSContext *mms)
>  {
> -    int exact_length= mms->write_out_ptr - mms->out_buffer;
> +    int len= mms->write_out_ptr - mms->out_buffer;
> +    int exact_length = (len + 7) & ~7;

this is FFALIGN(len, 8);

Ben



More information about the ffmpeg-cvslog mailing list