Просмотр исходного кода

codec: Remove deprecated usage of AVCodecContext::refcounted_frames

This was only necessary for use with the
avcodec_decode_video2/avcoded_decode_audio4 APIs which are also
deprecated.

Given we use avcodec_send_packet/avcodec_receive_frame, this isn't
necessary, this is even indicated directly within the FFmpeg API changes
document here on 2017-09-26:

https://github.com/FFmpeg/FFmpeg/blob/master/doc/APIchanges#L410

This prevents our code from breaking whenever we update to a newer
version of FFmpeg in the future if they ever decide to fully remove this
API member.
Lioncash 5 лет назад
Родитель
Сommit
94af77aa7c
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      src/video_core/command_classes/codecs/codec.cpp

+ 0 - 1
src/video_core/command_classes/codecs/codec.cpp

@@ -67,7 +67,6 @@ void Codec::Decode() {
         }
 
         av_codec_ctx = avcodec_alloc_context3(av_codec);
-        av_codec_ctx->refcounted_frames = 1;
         av_opt_set(av_codec_ctx->priv_data, "tune", "zerolatency", 0);
 
         // TODO(ameerj): libavcodec gpu hw acceleration