Hi there, Just run into a compilation error using ffmpeg 4.2.2. The ttached patch, which works with ffmpeg > 2.8 (released in 2015) fixes it. Hope that helps! Cheers, -- Saúl
From 356fa857edc38448daf0de163ff3a444d9e96652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= <s@xxxxxxxxxx> Date: Thu, 13 Feb 2020 14:45:54 +0100 Subject: [PATCH] ffmpeg: fix build with ffmpeg > 2.8 --- pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c b/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c index b2126a8e4..c14082074 100644 --- a/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c +++ b/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c @@ -1705,12 +1705,12 @@ static pj_status_t ffmpeg_codec_decode_whole(pjmedia_vid_codec *codec, avpacket.size = (int)input->size; /* ffmpeg warns: - * - input buffer padding, at least FF_INPUT_BUFFER_PADDING_SIZE + * - input buffer padding, at least AV_INPUT_BUFFER_PADDING_SIZE * - null terminated * Normally, encoded buffer is allocated more than needed, so lets just * bzero the input buffer end/pad, hope it will be just fine. */ - pj_bzero(avpacket.data+avpacket.size, FF_INPUT_BUFFER_PADDING_SIZE); + pj_bzero(avpacket.data+avpacket.size, AV_INPUT_BUFFER_PADDING_SIZE); output->bit_info = 0; output->timestamp = input->timestamp;
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org