diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-27 23:08:43 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-27 23:08:43 +0000 |
commit | 695f7de6a4082b5516578f2fdc585dd39b2271de (patch) | |
tree | 2706f4d66932168dffff066159a5c16b74d19f9f /cmdutils.c | |
parent | 39c6b3f54c6affb2db6bd021185b874dd05496d6 (diff) | |
download | ffmpeg-695f7de6a4082b5516578f2fdc585dd39b2271de.tar.gz |
Declare variable "version" in the PRINT_LIB_VERSION() macro if block,
slightly simpler and more robust.
Originally committed as revision 21492 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmdutils.c b/cmdutils.c index 7978ed2cb2..90dfccf445 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -326,7 +326,7 @@ void print_error(const char *filename, int err) #define PRINT_LIB_VERSION(outstream,libname,LIBNAME,indent) \ if (CONFIG_##LIBNAME) { \ - version= libname##_version(); \ + unsigned int version = libname##_version(); \ fprintf(outstream, "%slib%-10s %2d.%2d.%2d / %2d.%2d.%2d\n", \ indent? " " : "", #libname, \ LIB##LIBNAME##_VERSION_MAJOR, \ @@ -337,7 +337,6 @@ void print_error(const char *filename, int err) static void print_all_lib_versions(FILE* outstream, int indent) { - unsigned int version; PRINT_LIB_VERSION(outstream, avutil, AVUTIL, indent); PRINT_LIB_VERSION(outstream, avcodec, AVCODEC, indent); PRINT_LIB_VERSION(outstream, avformat, AVFORMAT, indent); |