avcodec/hevc: Add YUV420P10 to vaapi hardware decode - permits hardware decoding of HEVC Main 10 on AMD RX 480

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/231/head
Jean-Yves Simon 8 years ago committed by Michael Niedermayer
parent 449dc25f56
commit fb37da37ac
  1. 3
      libavcodec/hevc.c

@ -369,6 +369,9 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps, enum AVPixelFormat pix_fm
#endif
#if CONFIG_HEVC_D3D11VA_HWACCEL
*fmt++ = AV_PIX_FMT_D3D11VA_VLD;
#endif
#if CONFIG_HEVC_VAAPI_HWACCEL
*fmt++ = AV_PIX_FMT_VAAPI;
#endif
break;
}

Loading…
Cancel
Save