summaryrefslogtreecommitdiff
path: root/libavcodec/nellymoserenc.c
diff options
context:
space:
mode:
authorAlexander Chemeris <ipse.ffmpeg@gmail.com>2009-05-11 19:21:49 +0000
committerDiego Biurrun <diego@biurrun.de>2009-05-11 19:21:49 +0000
commitc67d725589596bf7a872525727d93bd24311a5eb (patch)
tree2dc102d92bbf11f9bd949f1973d7352a8272f03d /libavcodec/nellymoserenc.c
parent325aef38da0032082780218188c77c4bcf0a376d (diff)
Support 16K samplerate in Nellymoser.
patch by Alexander Chemeris, ipse.ffmpeg gmail.com Originally committed as revision 18798 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/nellymoserenc.c')
-rw-r--r--libavcodec/nellymoserenc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c
index 1cf0f14e19..1bb6c666ab 100644
--- a/libavcodec/nellymoserenc.c
+++ b/libavcodec/nellymoserenc.c
@@ -135,10 +135,11 @@ static av_cold int encode_init(AVCodecContext *avctx)
return -1;
}
- if (avctx->sample_rate != 8000 && avctx->sample_rate != 11025 &&
+ if (avctx->sample_rate != 8000 && avctx->sample_rate != 16000 &&
+ avctx->sample_rate != 11025 &&
avctx->sample_rate != 22050 && avctx->sample_rate != 44100 &&
avctx->strict_std_compliance >= FF_COMPLIANCE_NORMAL) {
- av_log(avctx, AV_LOG_ERROR, "Nellymoser works only with 8000, 11025, 22050 and 44100 sample rate\n");
+ av_log(avctx, AV_LOG_ERROR, "Nellymoser works only with 8000, 16000, 11025, 22050 and 44100 sample rate\n");
return -1;
}