1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

simplification

Originally committed as revision 8275 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alex Beregszaszi 2007-03-07 00:29:51 +00:00
parent cbc09a7d5a
commit fd9a71acaa

View File

@ -22,7 +22,6 @@
#include "voc.h" #include "voc.h"
static const int voc_max_pkt_size = 2048;
static int voc_probe(AVProbeData *p) 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; dec->bit_rate = dec->sample_rate * dec->bits_per_sample;
if (max_size <= 0) if (max_size <= 0)
max_size = voc_max_pkt_size; max_size = 2048;
size = FFMIN(voc->remaining_size, max_size); size = FFMIN(voc->remaining_size, max_size);
voc->remaining_size -= size; voc->remaining_size -= size;
return av_get_packet(pb, pkt, size); return av_get_packet(pb, pkt, size);