]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/flacenc.c
remove STATS code (probably hasnt been used for years ..., and its not completely...
[ffmpeg] / libavcodec / flacenc.c
index 6f264349b6e26d2787e9a8eae2c06552d2311bfc..6d4e1d0dca08c8c01030963a561e19160d88f505 100644 (file)
@@ -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;