Browse Source

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>
tags/n3.2
Jean-Yves Simon Michael Niedermayer 9 years ago
parent
commit
fb37da37ac
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/hevc.c

+ 3
- 0
libavcodec/hevc.c View File

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


Loading…
Cancel
Save