avcodec/vaapi_encode_vp9: fix > 4k encode fail issue
authorZhang yuankun <yuankunx.zhang@intel.com>
Mon, 12 Apr 2021 01:47:24 +0000 (09:47 +0800)
committerHaihao Xiang <haihao.xiang@intel.com>
Mon, 27 Dec 2021 03:19:27 +0000 (11:19 +0800)
commitdb901276c0ae4799a0d2c8f81f09497dd66b4ed7
tree67b6dbc2c0c5924f7a940db62b2f97a141256d13
parentdd7c0bc4f981f7113d7bef267cc1eca8d9fb10f1
avcodec/vaapi_encode_vp9: fix > 4k encode fail issue

This patch will fix following command:
ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i input.264 \
-vf 'scale_vaapi=w=7680:h=4096' -c:v vp9_vaapi output.ivf

Max width of a vp9 tile is 4096. If the source frame > 4096, we need split to multiple tiles.

Reviewed-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Zhang yuankun <yuankunx.zhang@intel.com>
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
libavcodec/vaapi_encode_vp9.c