Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-05-27 00:17:12 +0400
committerMichael Niedermayer <michaelni@gmx.at>2005-05-27 00:17:12 +0400
commit2692067a45e4cb4ce0028e170673f2b2f5039721 (patch)
tree19b10f28c74700113729a7ae6861c734e8bfab01 /libavformat/mp3.c
parent4aa606ec179a7df514fe5839b7ab5e24b42145b8 (diff)
AVPacket.pos
Originally committed as revision 4314 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mp3.c')
-rw-r--r--libavformat/mp3.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/mp3.c b/libavformat/mp3.c
index ebd7ef4be1..ddc27dea6f 100644
--- a/libavformat/mp3.c
+++ b/libavformat/mp3.c
@@ -297,13 +297,10 @@ static int mp3_read_packet(AVFormatContext *s, AVPacket *pkt)
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