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

Ronald S. Bultje rsbultje
Thu Aug 12 00:27:52 CEST 2010


Hi,

On Tue, Jul 20, 2010 at 11:19 AM, Benoit Fouet <benoit.fouet at free.fr> wrote:
> 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);

Changed in r24777.

Ronald



More information about the ffmpeg-cvslog mailing list