mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Do not offer unsupported HWAccel PIX_FMT.
Only fixes MPEG-1/MPEG-2 as a first step.
This commit is contained in:
parent
735c4f0b84
commit
da53f05fd0
@ -1217,21 +1217,31 @@ static void quant_matrix_rebuild(uint16_t *matrix, const uint8_t *old_perm,
|
||||
}
|
||||
|
||||
static const enum PixelFormat mpeg1_hwaccel_pixfmt_list_420[] = {
|
||||
#if CONFIG_MPEG_XVMC_DECODER
|
||||
PIX_FMT_XVMC_MPEG2_IDCT,
|
||||
PIX_FMT_XVMC_MPEG2_MC,
|
||||
#endif
|
||||
#if CONFIG_MPEG1_VDPAU_HWACCEL
|
||||
PIX_FMT_VDPAU_MPEG1,
|
||||
PIX_FMT_DXVA2_VLD,
|
||||
PIX_FMT_VAAPI_VLD,
|
||||
#endif
|
||||
PIX_FMT_YUV420P,
|
||||
PIX_FMT_NONE
|
||||
};
|
||||
|
||||
static const enum PixelFormat mpeg2_hwaccel_pixfmt_list_420[] = {
|
||||
#if CONFIG_MPEG_XVMC_DECODER
|
||||
PIX_FMT_XVMC_MPEG2_IDCT,
|
||||
PIX_FMT_XVMC_MPEG2_MC,
|
||||
#endif
|
||||
#if CONFIG_MPEG2_VDPAU_HWACCEL
|
||||
PIX_FMT_VDPAU_MPEG2,
|
||||
#endif
|
||||
#if CONFIG_MPEG2_DXVA2_HWACCEL
|
||||
PIX_FMT_DXVA2_VLD,
|
||||
#endif
|
||||
#if CONFIG_MPEG2_VAAPI_HWACCEL
|
||||
PIX_FMT_VAAPI_VLD,
|
||||
#endif
|
||||
PIX_FMT_YUV420P,
|
||||
PIX_FMT_NONE
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user