summaryrefslogtreecommitdiff
path: root/libavcodec/libfdk-aacenc.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-09-25 08:31:44 +0300
committerMartin Storsjö <martin@martin.st>2012-09-25 20:51:46 +0300
commita10190dcd8e4f357119676510bd182699b61cf36 (patch)
treef86670fdfdba9634f06ee58e9bbd2fdefbb2cd48 /libavcodec/libfdk-aacenc.c
parentb62d4c16c901a7e3fe0296345970bce815ac410e (diff)
libfdk-aac: Warn the user that the VBR modes are unsupported
These modes were not originally exposed by the library at all. In practice, only a few of them work for each sample rate/profile combination, and they don't work at all for the more uncommon sample rates. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/libfdk-aacenc.c')
-rw-r--r--libavcodec/libfdk-aacenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c
index 289c7aca9e..362a17ccdf 100644
--- a/libavcodec/libfdk-aacenc.c
+++ b/libavcodec/libfdk-aacenc.c
@@ -180,6 +180,9 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
"VBR quality %d out of range, should be 1-5\n", mode);
mode = av_clip(mode, 1, 5);
}
+ av_log(avctx, AV_LOG_WARNING,
+ "Note, the VBR setting is unsupported and only works with "
+ "some parameter combinations\n");
if ((err = aacEncoder_SetParam(s->handle, AACENC_BITRATEMODE,
mode)) != AACENC_OK) {
av_log(avctx, AV_LOG_ERROR, "Unable to set the VBR bitrate mode %d: %s\n",