Mercurial > libavformat.hg
diff electronicarts.c @ 775:c5077fdab490 libavformat
AVPacket.pos
author | michael |
---|---|
date | Thu, 26 May 2005 20:17:12 +0000 |
parents | 485a529adaee |
children | feca73904e67 |
line wrap: on
line diff
--- a/electronicarts.c Thu May 26 07:47:51 2005 +0000 +++ b/electronicarts.c Thu May 26 20:17:12 2005 +0000 @@ -234,13 +234,10 @@ 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 @@ * on stereo; chunk also has 12-byte header */ ea->audio_frame_counter += ((chunk_size - 12) * 2) / ea->num_channels; - } } packet_read = 1;