Mercurial > libavformat.hg
diff mp3.c @ 775:c5077fdab490 libavformat
AVPacket.pos
author | michael |
---|---|
date | Thu, 26 May 2005 20:17:12 +0000 |
parents | cdb845a57ae4 |
children | 731af78f150d |
line wrap: on
line diff
--- a/mp3.c Thu May 26 07:47:51 2005 +0000 +++ b/mp3.c Thu May 26 20:17:12 2005 +0000 @@ -297,13 +297,10 @@ size= MP3_PACKET_SIZE; - if (av_new_packet(pkt, size) < 0) - return AVERROR_IO; + ret= av_get_packet(&s->pb, pkt, size); pkt->stream_index = 0; - ret = get_buffer(&s->pb, pkt->data, size); if (ret <= 0) { - av_free_packet(pkt); return AVERROR_IO; } /* note: we need to modify the packet size here to handle the last