From 24ee60c2ec6c2199c69ac3d2288b13325abd137b Mon Sep 17 00:00:00 2001 From: pabs Date: Tue, 20 May 2008 05:09:53 +0000 Subject: [PATCH] Fix 1877061: fix build problem with newer versions of libavformat due to the pb member of AVFormatContext changing from a structure to a pointer git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2030 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/mod_libavcodec/trgt_av.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synfig-core/trunk/src/modules/mod_libavcodec/trgt_av.cpp b/synfig-core/trunk/src/modules/mod_libavcodec/trgt_av.cpp index 8a3e373..f1d9333 100644 --- a/synfig-core/trunk/src/modules/mod_libavcodec/trgt_av.cpp +++ b/synfig-core/trunk/src/modules/mod_libavcodec/trgt_av.cpp @@ -674,7 +674,11 @@ public: if(!(format->flags & AVFMT_NOFILE)) { /* close the output file */ +#if LIBAVFORMAT_VERSION_INT >= (52<<16) + url_fclose(formatc->pb); +#else url_fclose(&formatc->pb); +#endif } /* free the stream */ -- 2.7.4