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/electronicarts.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/electronicarts.c')
-rw-r--r-- | libavformat/electronicarts.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index 6bb86af0b3..2d8bdadb57 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -234,13 +234,10 @@ static int ea_read_packet(AVFormatContext *s, switch (chunk_type) { /* audio data */ case SCDl_TAG: - if (av_new_packet(pkt, chunk_size)) + ret = av_get_packet(pb, pkt, chunk_size); + if (ret != chunk_size) ret = AVERROR_IO; else { - ret = get_buffer(pb, pkt->data, chunk_size); - if (ret != chunk_size) - ret = AVERROR_IO; - else { pkt->stream_index = ea->audio_stream_index; pkt->pts = 90000; pkt->pts *= ea->audio_frame_counter; @@ -250,7 +247,6 @@ static int ea_read_packet(AVFormatContext *s, * on stereo; chunk also has 12-byte header */ ea->audio_frame_counter += ((chunk_size - 12) * 2) / ea->num_channels; - } } packet_read = 1; |