From c6375bf23cf8929344b9c10d6bae12b7bf0fd79c Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sat, 8 Jul 2006 16:39:58 +0000 Subject: allows user-settable block size and fixes related typo Originally committed as revision 5674 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/flacenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/flacenc.c') diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 6f264349b6..6d4e1d0dca 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -330,7 +330,7 @@ static int flac_encode_init(AVCodecContext *avctx) if(avctx->frame_size > 0) { if(avctx->frame_size < FLAC_MIN_BLOCKSIZE || - avctx->frame_size > FLAC_MIN_BLOCKSIZE) { + avctx->frame_size > FLAC_MAX_BLOCKSIZE) { av_log(avctx, AV_LOG_ERROR, "invalid block size: %d\n", avctx->frame_size); return -1; -- cgit v1.2.3