Mercurial > libavcodec.hg
changeset 3442:5d133e59ecf2 libavcodec
allows user-settable block size and fixes related typo
author | jbr |
---|---|
date | Sat, 08 Jul 2006 16:39:58 +0000 |
parents | 040e907f30b7 |
children | 31b62dbfa32e |
files | flacenc.c utils.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flacenc.c Sat Jul 08 16:39:49 2006 +0000 +++ b/flacenc.c Sat Jul 08 16:39:58 2006 +0000 @@ -330,7 +330,7 @@ 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;
--- a/utils.c Sat Jul 08 16:39:49 2006 +0000 +++ b/utils.c Sat Jul 08 16:39:58 2006 +0000 @@ -499,7 +499,7 @@ {"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},