From bb6165342db0ba60fefa97afe770b393fd6cb463 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 7 Dec 2013 19:32:44 +0100 Subject: video: create a separate context for video filter chain This adds vf_chain, which unlike vf_instance refers to the filter chain as a whole. This makes the filter API less awkward, and will allow handling format negotiation better. --- video/decode/vd_lavc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/decode/vd_lavc.c') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 10e46b78b1..7683f6c6de 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -791,8 +791,8 @@ static struct mp_image *decode_with_fallback(struct dec_video *vd, init_avctx(vd, decoder, NULL); if (ctx->avctx) { mpi = NULL; - if (vd->vf_initialized < 0) - vd->vf_initialized = 0; + if (vd->vfilter && vd->vfilter->initialized < 0) + vd->vfilter->initialized = 0; decode(vd, packet, flags, &mpi); return mpi; } -- cgit v1.2.3