summaryrefslogtreecommitdiff
path: root/libavformat/au.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/au.c
parent4aa606ec179a7df514fe5839b7ab5e24b42145b8 (diff)
AVPacket.pos
Originally committed as revision 4314 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/au.c')
-rw-r--r--libavformat/au.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/au.c b/libavformat/au.c
index 1709c874ec..984180ab4b 100644
--- a/libavformat/au.c
+++ b/libavformat/au.c
@@ -161,13 +161,11 @@ static int au_read_packet(AVFormatContext *s,
if (url_feof(&s->pb))
return AVERROR_IO;
- if (av_new_packet(pkt, MAX_SIZE))
+ ret= av_get_packet(&s->pb, pkt, MAX_SIZE);
+ if (ret < 0)
return AVERROR_IO;
pkt->stream_index = 0;
- ret = get_buffer(&s->pb, pkt->data, pkt->size);
- if (ret < 0)
- av_free_packet(pkt);
/* note: we need to modify the packet size here to handle the last
packet */
pkt->size = ret;