Skip to content

Commit

Permalink
Корректировка кастомного кода ffmpeg.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksoid1978 committed Feb 22, 2024
1 parent b7ad4b0 commit ef23fb1
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions src/ExtLib/ffmpeg/libavcodec/hevcdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,13 +498,6 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps)
#endif
#if CONFIG_HEVC_VIDEOTOOLBOX_HWACCEL
*fmt++ = AV_PIX_FMT_VIDEOTOOLBOX;
#endif
break;
// ==> Start patch MPC
case AV_PIX_FMT_YUV422P12:
#if CONFIG_HEVC_D3D11VA_HWACCEL
*fmt++ = AV_PIX_FMT_D3D11VA_VLD;
*fmt++ = AV_PIX_FMT_D3D11;
#endif
#if CONFIG_HEVC_VULKAN_HWACCEL
*fmt++ = AV_PIX_FMT_VULKAN;
Expand Down Expand Up @@ -535,16 +528,20 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps)
#endif
#if CONFIG_HEVC_NVDEC_HWACCEL
*fmt++ = AV_PIX_FMT_CUDA;
#endif
break;
case AV_PIX_FMT_YUV422P12:
// ==> Start patch MPC
//#endif
// break;
// case AV_PIX_FMT_YUV422P12:
//#if CONFIG_HEVC_VAAPI_HWACCEL
// *fmt++ = AV_PIX_FMT_VAAPI;
//#endif
//#if CONFIG_HEVC_VULKAN_HWACCEL
// *fmt++ = AV_PIX_FMT_VULKAN;
#if CONFIG_HEVC_D3D11VA_HWACCEL
*fmt++ = AV_PIX_FMT_D3D11VA_VLD;
*fmt++ = AV_PIX_FMT_D3D11;
#endif
// ==> End patch MPC
#if CONFIG_HEVC_VAAPI_HWACCEL
*fmt++ = AV_PIX_FMT_VAAPI;
#endif
#if CONFIG_HEVC_VULKAN_HWACCEL
*fmt++ = AV_PIX_FMT_VULKAN;
#endif
break;
}
Expand Down

0 comments on commit ef23fb1

Please sign in to comment.