diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-05-26 20:17:12 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-05-26 20:17:12 +0000 |
commit | 2692067a45e4cb4ce0028e170673f2b2f5039721 (patch) | |
tree | 19b10f28c74700113729a7ae6861c734e8bfab01 /libavformat/nsvdec.c | |
parent | 4aa606ec179a7df514fe5839b7ab5e24b42145b8 (diff) | |
download | ffmpeg-2692067a45e4cb4ce0028e170673f2b2f5039721.tar.gz |
AVPacket.pos
Originally committed as revision 4314 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nsvdec.c')
-rw-r--r-- | libavformat/nsvdec.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c index fa8adf0765..91c2aabe69 100644 --- a/libavformat/nsvdec.c +++ b/libavformat/nsvdec.c @@ -592,8 +592,7 @@ null_chunk_retry: if (vsize/* && st[NSV_ST_VIDEO]*/) { nst = st[NSV_ST_VIDEO]->priv_data; pkt = &nsv->ahead[NSV_ST_VIDEO]; - av_new_packet(pkt, vsize); - get_buffer(pb, pkt->data, vsize); + av_get_packet(pb, pkt, vsize); pkt->stream_index = st[NSV_ST_VIDEO]->index;//NSV_ST_VIDEO; pkt->dts = nst->frame_offset++; pkt->flags |= PKT_FLAG_KEY; /* stupid format has no way to tell XXX: try the index */ @@ -633,9 +632,7 @@ null_chunk_retry: PRINT(("NSV RAWAUDIO: bps %d, nchan %d, srate %ld\n", bps, channels, samplerate)); } } - av_new_packet(pkt, asize); - if (asize) - get_buffer(pb, pkt->data, asize); + av_get_packet(pb, pkt, asize); pkt->stream_index = st[NSV_ST_AUDIO]->index;//NSV_ST_AUDIO; //pkt->dts = nst->frame_offset; //if (nst->sample_size) |