diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-21 22:54:36 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-21 22:54:36 +0000 |
commit | 217e2f46797ccbd90e00da83da8aeb49c5dd4eb9 (patch) | |
tree | ce01697285b87d5b2c1e6fd33c8b7e0de5be3b53 /libavformat | |
parent | 42b9f45c0d9daa008b05e2b5c45712b67a8cb151 (diff) | |
download | ffmpeg-217e2f46797ccbd90e00da83da8aeb49c5dd4eb9.tar.gz |
remove useless var
Originally committed as revision 13230 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/ffm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/ffm.c b/libavformat/ffm.c index deb30a6e7d..5c9dd7830f 100644 --- a/libavformat/ffm.c +++ b/libavformat/ffm.c @@ -247,7 +247,6 @@ static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt) 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 @@ static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt) 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; |