[FFmpeg-soc] [soc]: r5688 - mms/mmst.c

spyfeng subversion at mplayerhq.hu
Sat Mar 20 16:36:26 CET 2010


Author: spyfeng
Date: Sat Mar 20 16:36:26 2010
New Revision: 5688

Log:
use MKTAG() instead of calling put_byte() 4 times.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Sat Mar 20 16:12:28 2010	(r5687)
+++ mms/mmst.c	Sat Mar 20 16:36:26 2010	(r5688)
@@ -151,10 +151,7 @@ static void start_command_packet(MMSCont
     put_le32(context, 1); // start sequence?
     put_le32(context, 0xb00bface);
     put_le32(context, 0); // Length starts from after the protocol type bytes
-    put_byte(context, 'M');
-    put_byte(context, 'M');
-    put_byte(context, 'S');
-    put_byte(context, ' ');
+    put_le32(context, MKTAG('M','M','S',' '));
     put_le32(context, 0);
     put_le32(context, mms->sequence_number++);
     put_le64(context, 0); // timestmamp


More information about the FFmpeg-soc mailing list