Mercurial > libavformat.hg
changeset 3312:20ea7e918398 libavformat
remove useless var
author | bcoudurier |
---|---|
date | Wed, 21 May 2008 22:54:36 +0000 |
parents | c603ff471631 |
children | 8e83e0b76105 |
files | ffm.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ffm.c Wed May 21 22:53:52 2008 +0000 +++ b/ffm.c Wed May 21 22:54:36 2008 +0000 @@ -247,7 +247,6 @@ FFMStream *fst = st->priv_data; int64_t pts; uint8_t header[FRAME_HEADER_SIZE]; - int size= pkt->size; pts = fst->pts; /* packet size & key_frame */ @@ -255,10 +254,10 @@ header[1] = 0; if (pkt->flags & PKT_FLAG_KEY) header[1] |= FLAG_KEY_FRAME; - AV_WB24(header+2, size); + AV_WB24(header+2, pkt->size); AV_WB24(header+5, pkt->duration); 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, pkt->size, pts, 0); fst->pts += pkt->duration; return 0;