allows user-settable block size and fixes related typo
Originally committed as revision 5674 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
bac3be382e
commit
c6375bf23c
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue