summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/decode/vd_lavc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 0fe3edd7ac..2acfa9a9c0 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -1062,7 +1062,8 @@ static int decode_frame(struct mp_filter *vd)
av_frame_unref(ctx->pic);
return ret;
}
- assert(mpi->planes[0] || mpi->planes[3]);
+ if (mpi->imgfmt == IMGFMT_CUDA)
+ assert(mpi->planes[0]);
mpi->pts = mp_pts_from_av(ctx->pic->pts, &ctx->codec_timebase);
mpi->dts = mp_pts_from_av(ctx->pic->pkt_dts, &ctx->codec_timebase);