Fix 1877061: fix build problem with newer versions of libavformat due to the pb membe...
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 20 May 2008 05:09:53 +0000 (05:09 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 20 May 2008 05:09:53 +0000 (05:09 +0000)
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

index 8a3e373..f1d9333 100644 (file)
@@ -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 */