summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2006-07-08 16:39:58 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2006-07-08 16:39:58 +0000
commitc6375bf23cf8929344b9c10d6bae12b7bf0fd79c (patch)
tree4b2064401ed9c933643c62f8cdf840f6cc205383
parentbac3be382eba51d854ec38f65c37faf55a51ef53 (diff)
allows user-settable block size and fixes related typo
Originally committed as revision 5674 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/flacenc.c2
-rw-r--r--libavcodec/utils.c2
2 files changed, 2 insertions, 2 deletions
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;
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 30d9d17f63..9784e14ca3 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -499,7 +499,7 @@ static const AVOption options[]={
{"sample_rate", NULL, OFFSET(sample_rate), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
{"channels", NULL, OFFSET(channels), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
{"cutoff", "set cutoff bandwidth", OFFSET(cutoff), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, A|E},
-{"frame_size", NULL, OFFSET(frame_size), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
+{"frame_size", NULL, OFFSET(frame_size), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, A|E},
{"frame_number", NULL, OFFSET(frame_number), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
{"real_pict_num", NULL, OFFSET(real_pict_num), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
{"delay", NULL, OFFSET(delay), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},