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 2d20aae commit d35b2a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/videostreaming/avcodec/avcodec_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,14 @@ int AVCodecDecoder::open_and_decode_until_error(const QOpenHDVideoHelper::VideoS
return 0;
}

#ifdef _WIN32
const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_DXVA2;
#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_DXVA2;
//const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_DRM;
//const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_D3D11VA;
//const AVHWDeviceType kAvhwDeviceType = AV_HWDEVICE_TYPE_VAAPI;
Expand Down

0 comments on commit d35b2a3

Please sign in to comment.