simplify
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Tue, 27 May 2008 03:00:40 +0000 (03:00 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Tue, 27 May 2008 03:00:40 +0000 (03:00 +0000)
Originally committed as revision 13458 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/swfenc.c

index 1e19141..cd63a47 100644 (file)
@@ -410,10 +410,7 @@ static int swf_write_video(AVFormatContext *s,
         put_le16(pb, BITMAP_ID); /* ID of the image */
 
         /* a dummy jpeg header seems to be required */
-        put_byte(pb, 0xff);
-        put_byte(pb, 0xd8);
-        put_byte(pb, 0xff);
-        put_byte(pb, 0xd9);
+        put_be32(pb, 0xffd8ffd9);
         /* write the jpeg image */
         put_buffer(pb, buf, size);