diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-21 22:49:48 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-21 22:49:48 +0000 |
commit | 56b8a7b72ae65cf303465cf99eb087914230f25b (patch) | |
tree | 5e4d8bd558c69f584ede243d12d1258c486ccfed | |
parent | 252c189bc4269a08799c9cfad980d18084cf644a (diff) | |
download | ffmpeg-56b8a7b72ae65cf303465cf99eb087914230f25b.tar.gz |
simplify
Originally committed as revision 13227 to svn://svn.ffmpeg.org/ffmpeg/trunk
-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 70c91218ae..fc7b35d879 100644 --- a/libavformat/ffm.c +++ b/libavformat/ffm.c @@ -264,9 +264,7 @@ static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt) if (pkt->flags & PKT_FLAG_KEY) header[1] |= FLAG_KEY_FRAME; AV_WB24(header+2, size); - header[5] = (duration >> 16) & 0xff; - header[6] = (duration >> 8) & 0xff; - header[7] = duration & 0xff; + AV_WB24(header+5, duration); ffm_write_data(s, header, FRAME_HEADER_SIZE, pts, 1); ffm_write_data(s, pkt->data, size, pts, 0); |