Mercurial > libavformat.hg
diff swf.c @ 775:c5077fdab490 libavformat
AVPacket.pos
author | michael |
---|---|
date | Thu, 26 May 2005 20:17:12 +0000 |
parents | af4e24d6310c |
children | e1007d19f28d |
line wrap: on
line diff
--- a/swf.c Thu May 26 07:47:51 2005 +0000 +++ b/swf.c Thu May 26 20:17:12 2005 +0000 @@ -858,10 +858,9 @@ if (st->id == 0) { if ( get_le16(pb) == swf->ch_id ) { frame = get_le16(pb); - av_new_packet(pkt, len-4); + av_get_packet(pb, pkt, len-4); pkt->pts = frame * swf->ms_per_frame; pkt->stream_index = st->index; - get_buffer(pb, pkt->data, pkt->size); return pkt->size; } else { url_fskip(pb, len-2); @@ -874,9 +873,8 @@ for( i=0; i<s->nb_streams; i++ ) { st = s->streams[i]; if (st->id == 1) { - av_new_packet(pkt, len); + av_get_packet(pb, pkt, len); pkt->stream_index = st->index; - get_buffer(pb, pkt->data, pkt->size); return pkt->size; } }