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
1 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,8 @@ static bool create_vdp_decoder(struct lavc_ctx *ctx)
goto fail;
}
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;
}