Browse Source

conditionalize

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35353 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 16 years ago
parent
commit
96baa836f4
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/ogsf/gsd_img_mpeg.c

+ 4 - 0
lib/ogsf/gsd_img_mpeg.c

@@ -436,7 +436,11 @@ int gsd_close_mpeg(void)
 
     if (!(fmt->flags & AVFMT_NOFILE)) {
 	/* close the output file */
+#if (LIBAVFORMAT_VERSION_INT>>16) < 52
+	url_fclose(&oc->pb);
+#else
 	url_fclose(oc->pb);
+#endif
     }
 
     /* free the stream */