[FFmpeg-cvslog] cmdutils: print a more descriptive error message in show_help_bsf() when no bsf is specified
James Almer
git at videolan.org
Sat Jul 28 17:16:38 EEST 2018
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Jul 28 00:58:29 2018 -0300| [d228df6ff3597928acf76d7ae922c1ec7d2c0b0f] | committer: James Almer
cmdutils: print a more descriptive error message in show_help_bsf() when no bsf is specified
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d228df6ff3597928acf76d7ae922c1ec7d2c0b0f
---
fftools/cmdutils.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index b8de319fe4..9cfbc45c2b 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -1956,7 +1956,10 @@ static void show_help_bsf(const char *name)
{
const AVBitStreamFilter *bsf = av_bsf_get_by_name(name);
- if (!bsf) {
+ if (!name) {
+ av_log(NULL, AV_LOG_ERROR, "No bitstream filter name specified.\n");
+ return;
+ } else if (!bsf) {
av_log(NULL, AV_LOG_ERROR, "Unknown bit stream filter '%s'.\n", name);
return;
}
More information about the ffmpeg-cvslog
mailing list