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/wc3movie.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/wc3movie.c')
-rw-r--r-- | libavformat/wc3movie.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavformat/wc3movie.c b/libavformat/wc3movie.c index 6f9fedd3db..30417fef15 100644 --- a/libavformat/wc3movie.c +++ b/libavformat/wc3movie.c @@ -318,11 +318,9 @@ static int wc3_read_packet(AVFormatContext *s, 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 @@ static int wc3_read_packet(AVFormatContext *s, 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; |