aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/swf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-05-26 20:17:12 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-05-26 20:17:12 +0000
commit2692067a45e4cb4ce0028e170673f2b2f5039721 (patch)
tree19b10f28c74700113729a7ae6861c734e8bfab01 /libavformat/swf.c
parent4aa606ec179a7df514fe5839b7ab5e24b42145b8 (diff)
downloadffmpeg-2692067a45e4cb4ce0028e170673f2b2f5039721.tar.gz
AVPacket.pos
Originally committed as revision 4314 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/swf.c')
-rw-r--r--libavformat/swf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c
index 5f868994e4..1a254b82ca 100644
--- a/libavformat/swf.c
+++ b/libavformat/swf.c
@@ -858,10 +858,9 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
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 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
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;
}
}