1
mirror of https://github.com/mpv-player/mpv synced 2024-11-11 00:15:33 +01:00

vdpau: change the error message when video too large

This commit is contained in:
Andrey Morozov 2014-02-24 20:49:29 +04:00 committed by wm4
parent 701c8c8254
commit d0e64dcc9b

View File

@ -126,7 +126,8 @@ static bool create_vdp_decoder(struct lavc_ctx *ctx)
goto fail; goto fail;
} }
if (p->vid_width > maxw || p->vid_height > maxh) { if (p->vid_width > maxw || p->vid_height > maxh) {
MP_ERR(p, "Video too large.\n"); MP_ERR(p, "Video resolution(%dx%d) is larger than the maximum size(%dx%d) supported.\n",
p->vid_width, p->vid_height, maxw, maxh);
goto fail; goto fail;
} }