summaryrefslogtreecommitdiff
path: root/libav/wav.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-07-24 17:56:25 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-07-24 17:56:25 +0000
commit94ef68647cef9aafef946ae0fc07cc874d5a6084 (patch)
tree7cc23d21a9361cb0de69a80023e3d72b50e27d78 /libav/wav.c
parent0e2a219706b0a4f00315a92bfd60ac61924370ea (diff)
suppressed packet size dependancy
Originally committed as revision 798 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/wav.c')
-rw-r--r--libav/wav.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libav/wav.c b/libav/wav.c
index 9e3d9ef0bb..7fb3bd3328 100644
--- a/libav/wav.c
+++ b/libav/wav.c
@@ -267,15 +267,11 @@ static int wav_read_header(AVFormatContext *s,
static int wav_read_packet(AVFormatContext *s,
AVPacket *pkt)
{
- int packet_size, n, ret;
+ int ret;
if (url_feof(&s->pb))
return -EIO;
- packet_size = url_get_packet_size(&s->pb);
- n = MAX_SIZE / packet_size;
- if (n <= 0)
- return n = 1;
- if (av_new_packet(pkt, n * packet_size))
+ if (av_new_packet(pkt, MAX_SIZE))
return -EIO;
pkt->stream_index = 0;