]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
muxer libav: fix compilation for ffmpeg < 3.4, fixes #4712
authorJaroslav Kysela <perex@perex.cz>
Thu, 9 Nov 2017 07:32:20 +0000 (08:32 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 9 Nov 2017 07:33:03 +0000 (08:33 +0100)
src/muxer/muxer_libav.c

index 653f83282db22dd581b03e95699654a5e6be6aac..a3ed8219901b278dbc80cfc01a55adf7ce38418c 100644 (file)
@@ -564,7 +564,11 @@ lav_muxer_close(muxer_t *m)
   oc = lm->lm_oc;
   if (lm->lm_fd >= 0) {
     av_freep(&oc->pb->buffer);
+#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(57, 80, 100)
     avio_context_free(&oc->pb);
+#else
+    av_freep(&oc->pb);
+#endif
     lm->lm_fd = -1;
   } else {
     avio_closep(&oc->pb);