[FFmpeg-devel] [PATCH] version string: add copyright line to version string

ffmpeg-dev at c-14.de ffmpeg-dev at c-14.de
Wed Jun 11 01:58:44 CEST 2014


From: Simon Thelen <ffmpeg-dev at c-14.de>

Show the copyright when running `ffmpeg -version'. This is useful for
end users trying to determine whether they are using FFmpeg or Libav.

Signed-off-by: Simon Thelen <ffmpeg at c-14.de>
---
 cmdutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmdutils.c b/cmdutils.c
index 63d6432..219ced1 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1105,7 +1105,7 @@ void show_banner(int argc, char **argv, const OptionDef *options)
 int show_version(void *optctx, const char *opt, const char *arg)
 {
     av_log_set_callback(log_callback_help);
-    print_program_info (0           , AV_LOG_INFO);
+    print_program_info (SHOW_COPYRIGHT, AV_LOG_INFO);
     print_all_libs_info(SHOW_VERSION, AV_LOG_INFO);
 
     return 0;
-- 
2.0.0



More information about the ffmpeg-devel mailing list