Mercurial > libavformat.hg
changeset 3309:a1cfa9c6e399 libavformat
simplify
author | bcoudurier |
---|---|
date | Wed, 21 May 2008 22:49:48 +0000 |
parents | 77b56bc6134f |
children | 66d5e19f7b77 |
files | ffm.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ffm.c Wed May 21 22:48:33 2008 +0000 +++ b/ffm.c Wed May 21 22:49:48 2008 +0000 @@ -264,9 +264,7 @@ 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);