Skip to content
Snippets Groups Projects
Commit 93e434d3 authored by Philippe Gorley's avatar Philippe Gorley Committed by Andreas Traczyk
Browse files

video: add sentinel to accel array


UWP doesn't compile with empty arrays, so add a dummy accel at
the end of the array.

Change-Id: Ie5437cba25b26e835f632a44a533eeaa0caf49cc
Reviewed-by: default avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent 0eb462a8
No related branches found
No related tags found
No related merge requests found
...@@ -172,6 +172,7 @@ std::unique_ptr<HardwareAccel> ...@@ -172,6 +172,7 @@ std::unique_ptr<HardwareAccel>
makeHardwareAccel(AVCodecContext* codecCtx) makeHardwareAccel(AVCodecContext* codecCtx)
{ {
enum class AccelID { enum class AccelID {
NoAccel,
Vdpau, Vdpau,
Vaapi, Vaapi,
VideoToolbox, VideoToolbox,
...@@ -211,6 +212,7 @@ makeHardwareAccel(AVCodecContext* codecCtx) ...@@ -211,6 +212,7 @@ makeHardwareAccel(AVCodecContext* codecCtx)
#ifdef RING_VDA #ifdef RING_VDA
{ AccelID::Vda, "vda", AV_PIX_FMT_VDA, makeHardwareAccel<VideoToolboxAccel> }, { AccelID::Vda, "vda", AV_PIX_FMT_VDA, makeHardwareAccel<VideoToolboxAccel> },
#endif #endif
{ AccelID::NoAccel, "none", AV_PIX_FMT_NONE, nullptr },
}; };
std::vector<AccelID> possibleAccels = {}; std::vector<AccelID> possibleAccels = {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment