Mercurial > libavformat.hg
diff wc3movie.c @ 775:c5077fdab490 libavformat
AVPacket.pos
author | michael |
---|---|
date | Thu, 26 May 2005 20:17:12 +0000 |
parents | 253b5292946a |
children | feca73904e67 |
line wrap: on
line diff
--- a/wc3movie.c Thu May 26 07:47:51 2005 +0000 +++ b/wc3movie.c Thu May 26 20:17:12 2005 +0000 @@ -318,11 +318,9 @@ case VGA__TAG: /* send out video chunk */ - if (av_new_packet(pkt, size)) - ret = AVERROR_IO; + ret= av_get_packet(pb, pkt, size); pkt->stream_index = wc3->video_stream_index; pkt->pts = wc3->pts; - ret = get_buffer(pb, pkt->data, size); if (ret != size) ret = AVERROR_IO; packet_read = 1; @@ -349,11 +347,9 @@ case AUDI_TAG: /* send out audio chunk */ - if (av_new_packet(pkt, size)) - ret = AVERROR_IO; + ret= av_get_packet(pb, pkt, size); pkt->stream_index = wc3->audio_stream_index; pkt->pts = wc3->pts; - ret = get_buffer(pb, pkt->data, size); if (ret != size) ret = AVERROR_IO;