summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-12-18 12:27:47 +0100
committerwm4 <wm4@nowhere>2016-12-18 12:28:09 +0100
commite57037dc952def5c2b2d2be7535052f94dfb9294 (patch)
tree9485bc062d901c8539bdd36b4698f401a0f1e3e1 /audio
parent4bfec4279f758272e6d50b79edbcf2825f7afc56 (diff)
downloadmpv-e57037dc952def5c2b2d2be7535052f94dfb9294.tar.bz2
mpv-e57037dc952def5c2b2d2be7535052f94dfb9294.tar.xz
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.
Diffstat (limited to 'audio')
-rw-r--r--audio/decode/ad_lavc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c
index 276ce69739..c4d3a2ae7b 100644
--- a/audio/decode/ad_lavc.c
+++ b/audio/decode/ad_lavc.c
@@ -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;