From: pabs Date: Tue, 20 May 2008 05:09:53 +0000 (+0000) Subject: Fix 1877061: fix build problem with newer versions of libavformat due to the pb membe... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=24ee60c2ec6c2199c69ac3d2288b13325abd137b;p=synfig.git 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 --- 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 */