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