diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-09-14 12:27:12 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-10-02 10:19:04 -0400 |
commit | ded0800d44662391995a3c00b6c136fb781fee6b (patch) | |
tree | 1fe4aa0a895f9a3ccaff039dfb87cfb5d693e3d8 /libavcodec/nellymoserdec.c | |
parent | 84464b2e7f1fe38705c5cd523b70be549d8d03ee (diff) | |
download | ffmpeg-ded0800d44662391995a3c00b6c136fb781fee6b.tar.gz |
nellymoserdec: use NELLY_BLOCK_LEN instead of 64 when appropriate.
Diffstat (limited to 'libavcodec/nellymoserdec.c')
-rw-r--r-- | libavcodec/nellymoserdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c index a6748bf5f5..bd3ab99166 100644 --- a/libavcodec/nellymoserdec.c +++ b/libavcodec/nellymoserdec.c @@ -170,13 +170,13 @@ static int decode_tag(AVCodecContext * avctx, return buf_size; } - if (buf_size % 64) { + if (buf_size % NELLY_BLOCK_LEN) { av_log(avctx, AV_LOG_ERROR, "Tag size %d.\n", buf_size); *data_size = 0; return buf_size; } block_size = NELLY_SAMPLES * av_get_bytes_per_sample(avctx->sample_fmt); - blocks = FFMIN(buf_size / 64, *data_size / block_size); + blocks = FFMIN(buf_size / NELLY_BLOCK_LEN, *data_size / block_size); if (blocks <= 0) { av_log(avctx, AV_LOG_ERROR, "Output buffer is too small\n"); return AVERROR(EINVAL); |