mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-20 05:16:38 +00:00
lavc/vaapi_decode: Reject decoding of frames with no slices
Matches other hwaccels.
This commit is contained in:
parent
45d31614bc
commit
f7a1453f27
@ -156,6 +156,11 @@ int ff_vaapi_decode_issue(AVCodecContext *avctx,
|
|||||||
VAStatus vas;
|
VAStatus vas;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
if (pic->nb_slices <= 0) {
|
||||||
|
err = AVERROR(EINVAL);
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
av_log(avctx, AV_LOG_DEBUG, "Decode to surface %#x.\n",
|
av_log(avctx, AV_LOG_DEBUG, "Decode to surface %#x.\n",
|
||||||
pic->output_surface);
|
pic->output_surface);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user