Fix 1877061: fix build problem with newer versions of libavformat due to the pb membe...
[synfig.git] / 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 */