diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-22 02:48:33 +0400 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-22 02:48:33 +0400 |
commit | 252c189bc4269a08799c9cfad980d18084cf644a (patch) | |
tree | a5782a183a1d05e6fcb1711799cb13e90d308e03 /libavformat/ffm.c | |
parent | 38baa83c8ae88a1bae2b23b967ecd5f46981fd0b (diff) |
simplify
Originally committed as revision 13226 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ffm.c')
-rw-r--r-- | libavformat/ffm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/ffm.c b/libavformat/ffm.c index bb2ee4bc97..70c91218ae 100644 --- a/libavformat/ffm.c +++ b/libavformat/ffm.c @@ -263,9 +263,7 @@ static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt) 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; |