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-Tag: v4.2.5~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88508f58c792eb4a352dd4cfbcf7d57e63213c80;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 653f83282..a3ed82199 100644 --- a/src/muxer/muxer_libav.c +++ b/src/muxer/muxer_libav.c @@ -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);