Skip to content

Commit

Permalink
Update avcodec_decoder.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Jan 6, 2025
1 parent e381933 commit b83e98c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/videostreaming/avcodec/avcodec_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,15 +510,14 @@ int AVCodecDecoder::open_and_decode_until_error(const QOpenHDVideoHelper::VideoS
}

#ifdef _WIN32
const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_DXVA2;
const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_D3D11VA;
#else
const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_DRM;
#endif

//const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_D3D11VA;
//const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_DXVA2;
//const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_DRM;
//const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_D3D11VA;
//const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_VAAPI;
//const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_CUDA;
//const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_VDPAU;
Expand Down

0 comments on commit b83e98c

Please sign in to comment.