Commit f7a1453f authored by David Rosca's avatar David Rosca Committed by Haihao Xiang

lavc/vaapi_decode: Reject decoding of frames with no slices

Matches other hwaccels.
parent 45d31614
......@@ -156,6 +156,11 @@ int ff_vaapi_decode_issue(AVCodecContext *avctx,
VAStatus vas;
int err;
if (pic->nb_slices <= 0) {
err = AVERROR(EINVAL);
goto fail;
}
av_log(avctx, AV_LOG_DEBUG, "Decode to surface %#x.\n",
pic->output_surface);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment