summaryrefslogtreecommitdiff
path: root/fftools
diff options
context:
space:
mode:
authorTomas Härdin <tjoppen@acc.umu.se>2017-08-03 17:33:04 +0200
committerTomas Härdin <tjoppen@acc.umu.se>2018-02-24 17:06:31 +0100
commit5caae279799893e9ecd7646433262a07e0dfca75 (patch)
treed56b297f29e846feff4c1b2479b31c3dfe36fa31 /fftools
parent5655048c73f7c737f44f63e0c0d2b60abe4b9d2b (diff)
Don't complain about codec2's 700 bit/s modes in ffmpeg.c
Diffstat (limited to 'fftools')
-rw-r--r--fftools/ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index bea922b0aa..32caa4bfb2 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -3502,7 +3502,8 @@ static int init_output_stream(OutputStream *ost, char *error, int error_len)
av_buffersink_set_frame_size(ost->filter->filter,
ost->enc_ctx->frame_size);
assert_avoptions(ost->encoder_opts);
- if (ost->enc_ctx->bit_rate && ost->enc_ctx->bit_rate < 1000)
+ if (ost->enc_ctx->bit_rate && ost->enc_ctx->bit_rate < 1000 &&
+ ost->enc_ctx->codec_id != AV_CODEC_ID_CODEC2 /* don't complain about 700 bit/s modes */)
av_log(NULL, AV_LOG_WARNING, "The bitrate parameter is set too low."
" It takes bits/s as argument, not kbits/s\n");