Commit 75f4b69a authored by bcoudurier's avatar bcoudurier

simplify

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13227 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0f8cd112
...@@ -264,9 +264,7 @@ static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -264,9 +264,7 @@ static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt)
if (pkt->flags & PKT_FLAG_KEY) if (pkt->flags & PKT_FLAG_KEY)
header[1] |= FLAG_KEY_FRAME; header[1] |= FLAG_KEY_FRAME;
AV_WB24(header+2, size); AV_WB24(header+2, size);
header[5] = (duration >> 16) & 0xff; AV_WB24(header+5, duration);
header[6] = (duration >> 8) & 0xff;
header[7] = duration & 0xff;
ffm_write_data(s, header, FRAME_HEADER_SIZE, pts, 1); ffm_write_data(s, header, FRAME_HEADER_SIZE, pts, 1);
ffm_write_data(s, pkt->data, size, pts, 0); ffm_write_data(s, pkt->data, size, pts, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment