From c255e78b97b0095e57537244dc7ae982c4987bfb Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sun, 11 Apr 2021 11:41:53 +0200 Subject: [PATCH] SessionDescriptor: Fix a ffmpeg deprecation warning AVStream::codec is deprecated. The replacement AVStream::codecpar is initialized at the end of the method from the codec context. --- src/zm_sdp.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/zm_sdp.cpp b/src/zm_sdp.cpp index 8c691085f..db5a4dc99 100644 --- a/src/zm_sdp.cpp +++ b/src/zm_sdp.cpp @@ -352,8 +352,6 @@ AVFormatContext *SessionDescriptor::generateFormatContext() const { #if LIBAVCODEC_VERSION_CHECK(57, 64, 0, 64, 0) AVCodecContext *codec_context = avcodec_alloc_context3(nullptr); - //avcodec_parameters_to_context(codec_context, stream->codecpar); - stream->codec = codec_context; #else AVCodecContext *codec_context = stream->codec; #endif