[FFmpeg-cvslog] r13226 - trunk/libavformat/ffm.c

bcoudurier subversion
Thu May 22 00:48:34 CEST 2008


Author: bcoudurier
Date: Thu May 22 00:48:33 2008
New Revision: 13226

Log:
simplify

Modified:
   trunk/libavformat/ffm.c

Modified: trunk/libavformat/ffm.c
==============================================================================
--- trunk/libavformat/ffm.c	(original)
+++ trunk/libavformat/ffm.c	Thu May 22 00:48:33 2008
@@ -263,9 +263,7 @@ static int ffm_write_packet(AVFormatCont
     header[1] = 0;
     if (pkt->flags & PKT_FLAG_KEY)
         header[1] |= FLAG_KEY_FRAME;
-    header[2] = (size >> 16) & 0xff;
-    header[3] = (size >> 8) & 0xff;
-    header[4] = size & 0xff;
+    AV_WB24(header+2, size);
     header[5] = (duration >> 16) & 0xff;
     header[6] = (duration >> 8) & 0xff;
     header[7] = duration & 0xff;




More information about the ffmpeg-cvslog mailing list