summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_internal.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-24 08:43:56 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-25 07:16:32 +0300
commit31db39d8ec9cd2b8df0123e2f2142a187733ecad (patch)
treed550915eb5339500161fb58ff30c991d97cc3171 /libmpcodecs/vd_internal.h
parent7dc42263486bd45d2ba830f065a8556c02aaf7c8 (diff)
downloadmpv-31db39d8ec9cd2b8df0123e2f2142a187733ecad.tar.bz2
mpv-31db39d8ec9cd2b8df0123e2f2142a187733ecad.tar.xz
Make video decoder description structs const
This makes the per-decoder struct vd_functions and its ->info struct constants. Same for the mpcodecs_vd_drivers[] table of pointers to those structs.
Diffstat (limited to 'libmpcodecs/vd_internal.h')
-rw-r--r--libmpcodecs/vd_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/vd_internal.h b/libmpcodecs/vd_internal.h
index d04903e26a..dee8448cb1 100644
--- a/libmpcodecs/vd_internal.h
+++ b/libmpcodecs/vd_internal.h
@@ -19,7 +19,7 @@ static int init(sh_video_t *sh);
static void uninit(sh_video_t *sh);
static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags);
-#define LIBVD_EXTERN(x) vd_functions_t mpcodecs_vd_##x = {\
+#define LIBVD_EXTERN(x) const vd_functions_t mpcodecs_vd_##x = {\
&info,\
init,\
uninit,\