From: Jaroslav Kysela Date: Thu, 9 Nov 2017 07:32:20 +0000 (+0100) Subject: muxer libav: fix compilation for ffmpeg < 3.4, fixes #4712 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a331442a2f44e006b21d0002f8beadeaaed85772;p=thirdparty%2Ftvheadend.git muxer libav: fix compilation for ffmpeg < 3.4, fixes #4712 --- diff --git a/src/muxer/muxer_libav.c b/src/muxer/muxer_libav.c index 76aefe566..15719b957 100644 --- a/src/muxer/muxer_libav.c +++ b/src/muxer/muxer_libav.c @@ -569,7 +569,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);