From 56b8a7b72ae65cf303465cf99eb087914230f25b Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Wed, 21 May 2008 22:49:48 +0000 Subject: [PATCH] simplify Originally committed as revision 13227 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/ffm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/ffm.c b/libavformat/ffm.c index 70c9121..fc7b35d 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); -- 2.7.4