From 2692067a45e4cb4ce0028e170673f2b2f5039721 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 26 May 2005 20:17:12 +0000 Subject: AVPacket.pos Originally committed as revision 4314 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/sol.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libavformat/sol.c') diff --git a/libavformat/sol.c b/libavformat/sol.c index 038feeaac6..eed1b38f32 100644 --- a/libavformat/sol.c +++ b/libavformat/sol.c @@ -131,13 +131,9 @@ static int sol_read_packet(AVFormatContext *s, if (url_feof(&s->pb)) return -EIO; - if (av_new_packet(pkt, MAX_SIZE)) - return -EIO; + ret= av_get_packet(&s->pb, pkt, MAX_SIZE); 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; -- cgit v1.2.3