Merge pull request #3212 from Carbenium/sdp-deprec

SessionDescriptor: Fix a ffmpeg deprecation warning
This commit is contained in:
Isaac Connor 2021-04-11 11:53:18 -04:00 committed by GitHub
commit f50bfab0aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -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