diff vocdec.c @ 1884:1792b6c5387b libavformat

simplification
author alex
date Wed, 07 Mar 2007 00:29:51 +0000
parents a6cf9ee93fbb
children 1a3c9056982a
line wrap: on
line diff
--- a/vocdec.c	Wed Mar 07 00:27:23 2007 +0000
+++ b/vocdec.c	Wed Mar 07 00:29:51 2007 +0000
@@ -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 @@
     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);