Mercurial > libavcodec.hg
comparison flacenc.c @ 3442:5d133e59ecf2 libavcodec
allows user-settable block size and fixes related typo
author | jbr |
---|---|
date | Sat, 08 Jul 2006 16:39:58 +0000 |
parents | bdfc530c417c |
children | 9cda085ab7cc |
comparison
equal
deleted
inserted
replaced
3441:040e907f30b7 | 3442:5d133e59ecf2 |
---|---|
328 av_log(avctx, AV_LOG_DEBUG, " partition order: %d, %d\n", | 328 av_log(avctx, AV_LOG_DEBUG, " partition order: %d, %d\n", |
329 s->options.min_partition_order, s->options.max_partition_order); | 329 s->options.min_partition_order, s->options.max_partition_order); |
330 | 330 |
331 if(avctx->frame_size > 0) { | 331 if(avctx->frame_size > 0) { |
332 if(avctx->frame_size < FLAC_MIN_BLOCKSIZE || | 332 if(avctx->frame_size < FLAC_MIN_BLOCKSIZE || |
333 avctx->frame_size > FLAC_MIN_BLOCKSIZE) { | 333 avctx->frame_size > FLAC_MAX_BLOCKSIZE) { |
334 av_log(avctx, AV_LOG_ERROR, "invalid block size: %d\n", | 334 av_log(avctx, AV_LOG_ERROR, "invalid block size: %d\n", |
335 avctx->frame_size); | 335 avctx->frame_size); |
336 return -1; | 336 return -1; |
337 } | 337 } |
338 s->blocksize = avctx->frame_size; | 338 s->blocksize = avctx->frame_size; |