[Drdivx-commits] SF.net SVN: drdivx: [1328] DrDivX/trunk/drdivx2/src/cli/main.cpp
Brought to you by:
harikrishnan_v,
seabass089
From: <har...@us...> - 2007-07-17 20:22:07
|
Revision: 1328 http://svn.sourceforge.net/drdivx/?rev=1328&view=rev Author: harikrishnan_v Date: 2007-07-17 13:22:06 -0700 (Tue, 17 Jul 2007) Log Message: ----------- Update version info and version check Modified Paths: -------------- DrDivX/trunk/drdivx2/src/cli/main.cpp Modified: DrDivX/trunk/drdivx2/src/cli/main.cpp =================================================================== --- DrDivX/trunk/drdivx2/src/cli/main.cpp 2007-07-17 20:18:27 UTC (rev 1327) +++ DrDivX/trunk/drdivx2/src/cli/main.cpp 2007-07-17 20:22:06 UTC (rev 1328) @@ -290,8 +290,9 @@ fprintf(stdout, "Using DrFFMPEG: " "libavcodec %x, " - "libavformat %x\n", - avcodec_build(), avformat_build()); + "libavformat %x, " + "libavutil %x\n", + avcodec_version(), avformat_version(), avutil_version()); cout << COPYRIGHT << endl; cout << CONTACT_INFO << endl; @@ -364,7 +365,6 @@ } extern void av_log_drdivx(void* ptr, int level, const char* fmt, va_list vl); -extern void CheckVersion(int & ours_codec, int & found_codec, int & ours_format, int & found_format); #if defined(CLI_MODE) int main(int argc, char ** argv) @@ -420,9 +420,7 @@ #endif av_log_set_callback(av_log_drdivx); - int codecour, codecfound, formatour, formatfound; - CheckVersion(codecour, codecfound, formatour, formatfound); - if (codecfound < codecour || formatfound < formatour) + if (drffmpeg_check_version(LIBAVCODEC_VERSION_INT, LIBAVFORMAT_VERSION_INT, LIBAVUTIL_VERSION_INT) != 0) { cout << "Your DrFFMPEG dll is outdated" << endl; #ifndef NO_DRFFMPEG This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |