]> git.sesse.net Git - ffmpeg/commit
avcodec/cuviddec: add capability check for maximum macroblock count
authorRuta Gadkari <rgadkari@nvidia.com>
Fri, 3 May 2019 08:11:11 +0000 (13:41 +0530)
committerBtbN <btbn@btbn.de>
Wed, 8 May 2019 09:40:06 +0000 (11:40 +0200)
commit80155795bb433fe588a957be9fb96a0a2608a00f
treedd7f78f0d17b9da01a240d1169048f2f57d4a246
parent06ba4783a0ba331153b71993bc1908958d483c2d
avcodec/cuviddec: add capability check for maximum macroblock count

Cuvid supports clips with a limit on maximum number of macroblocks.
This check was missing after cuvidGetDecoderCaps API call allowing
unsupported clips to proceed.
Added the missing check, same as the one in hwaccel nvdec implementation.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
libavcodec/cuviddec.c