summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 479e36df6a..6c89b53886 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -791,6 +791,8 @@ static struct mp_image *decode_with_fallback(struct sh_video *sh,
init_avctx(sh, decoder, NULL);
if (ctx->avctx) {
mpi = NULL;
+ if (sh->vf_initialized < 0)
+ sh->vf_initialized = 0;
decode(sh, packet, flags, reordered_pts, &mpi);
return mpi;
}