mirror of https://github.com/mpv-player/mpv
ad_lavc, vd_lavc: don't set AVCodecContext.refcounted_frames
This field is (or should be) deprecated, and there's no need to set it with the new API.
This commit is contained in:
parent
4bfec4279f
commit
e57037dc95
|
@ -100,7 +100,6 @@ static int init(struct dec_audio *da, const char *decoder)
|
|||
lavc_context = avcodec_alloc_context3(lavc_codec);
|
||||
ctx->avctx = lavc_context;
|
||||
ctx->avframe = av_frame_alloc();
|
||||
lavc_context->refcounted_frames = 1;
|
||||
lavc_context->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
lavc_context->codec_id = lavc_codec->id;
|
||||
|
||||
|
|
|
@ -501,7 +501,6 @@ static void init_avctx(struct dec_video *vd, const char *decoder,
|
|||
avctx->pkt_timebase = ctx->codec_timebase;
|
||||
#endif
|
||||
|
||||
avctx->refcounted_frames = 1;
|
||||
ctx->pic = av_frame_alloc();
|
||||
if (!ctx->pic)
|
||||
goto error;
|
||||
|
|
Loading…
Reference in New Issue