[FFmpeg-cvslog] Don't complain about codec2's 700 bit/s modes in ffmpeg.c
Tomas Härdin
git at videolan.org
Sat Feb 24 19:29:20 EET 2018
ffmpeg | branch: master | Tomas Härdin <tjoppen at acc.umu.se> | Thu Aug 3 17:33:04 2017 +0200| [5caae279799893e9ecd7646433262a07e0dfca75] | committer: Tomas Härdin
Don't complain about codec2's 700 bit/s modes in ffmpeg.c
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5caae279799893e9ecd7646433262a07e0dfca75
---
fftools/ffmpeg.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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");
More information about the ffmpeg-cvslog
mailing list