Mesa (master): vdpau: fix invalid enum usage

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 5 11:47:38 UTC 2021


Module: Mesa
Branch: master
Commit: 6679a3439465118f3d9f97cca12d789b92e75374
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6679a3439465118f3d9f97cca12d789b92e75374

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Tue Dec  1 18:09:44 2020 +0100

vdpau: fix invalid enum usage

Reviewed-by: Michel Dänzer <mdaenzer at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7846>

---

 src/gallium/frontends/vdpau/vdpau_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/frontends/vdpau/vdpau_private.h b/src/gallium/frontends/vdpau/vdpau_private.h
index 05d8059eb1f..84889575cc0 100644
--- a/src/gallium/frontends/vdpau/vdpau_private.h
+++ b/src/gallium/frontends/vdpau/vdpau_private.h
@@ -115,7 +115,7 @@ FormatYCBCRToPipeChroma(VdpYCbCrFormat vdpau_format)
          assert(0);
    }
 
-   return PIPE_FORMAT_NONE;
+   return PIPE_VIDEO_CHROMA_FORMAT_NONE;
 }
 
 static inline enum pipe_format



More information about the mesa-commit mailing list