summaryrefslogtreecommitdiffstats
path: root/video/csputils.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/csputils.h')
-rw-r--r--video/csputils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/csputils.h b/video/csputils.h
index a494a06b28..33bac87f64 100644
--- a/video/csputils.h
+++ b/video/csputils.h
@@ -96,6 +96,8 @@ extern const char *const mp_stereo3d_names[MP_STEREO3D_COUNT];
#define MP_STEREO3D_NAME(x) \
((x) >= 0 && (x) < MP_STEREO3D_COUNT ? (char *)mp_stereo3d_names[(x)] : NULL)
+#define MP_STEREO3D_NAME_DEF(x, def) \
+ (MP_STEREO3D_NAME(x) ? MP_STEREO3D_NAME(x) : (def))
struct mp_csp_details {
enum mp_csp format;