Mercurial > libavformat.hg
changeset 3371:7a8c6c4eef16 libavformat
simplify
author | bcoudurier |
---|---|
date | Tue, 27 May 2008 03:00:40 +0000 |
parents | c1736a1cf27b |
children | d0bf0a1a99c7 |
files | swfenc.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/swfenc.c Tue May 27 02:57:48 2008 +0000 +++ b/swfenc.c Tue May 27 03:00:40 2008 +0000 @@ -410,10 +410,7 @@ 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);