summaryrefslogtreecommitdiff
path: root/libavformat/vocdec.c
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2007-03-07 00:29:51 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2007-03-07 00:29:51 +0000
commitfd9a71acaa49d376ec1b351010196292714185ec (patch)
tree8333ee7512a8db5f785ca351737654bf9172a828 /libavformat/vocdec.c
parentcbc09a7d5a570fff61a059c0a6f910f275805e97 (diff)
simplification
Originally committed as revision 8275 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/vocdec.c')
-rw-r--r--libavformat/vocdec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c
index bc9205faa0..85d304dff8 100644
--- a/libavformat/vocdec.c
+++ b/libavformat/vocdec.c
@@ -22,7 +22,6 @@
#include "voc.h"
-static const int voc_max_pkt_size = 2048;
static int voc_probe(AVProbeData *p)
@@ -128,7 +127,7 @@ voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
dec->bit_rate = dec->sample_rate * dec->bits_per_sample;
if (max_size <= 0)
- max_size = voc_max_pkt_size;
+ max_size = 2048;
size = FFMIN(voc->remaining_size, max_size);
voc->remaining_size -= size;
return av_get_packet(pb, pkt, size);