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:
wm4 2016-12-18 12:27:47 +01:00
parent 4bfec4279f
commit e57037dc95
2 changed files with 0 additions and 2 deletions

View File

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

View File

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