[FFmpeg-cvslog] avisynth: Don't declare structs anonymously
Stephen Hutchinson
git at videolan.org
Mon Oct 28 22:38:04 CET 2013
ffmpeg | branch: master | Stephen Hutchinson <qyot27 at gmail.com> | Mon Oct 28 16:52:47 2013 -0400| [da9852670c6936759b0a9502a625c9465d7dbeaf] | committer: Michael Niedermayer
avisynth: Don't declare structs anonymously
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da9852670c6936759b0a9502a625c9465d7dbeaf
---
libavformat/avisynth.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index 04f9389..48f9f76 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -54,7 +54,7 @@
#define FreeLibrary dlclose
#endif
-typedef struct {
+typedef struct AviSynthLibrary {
void *library;
#define AVSC_DECLARE_FUNC(name) name ## _func name
AVSC_DECLARE_FUNC(avs_bit_blt);
@@ -74,7 +74,7 @@ typedef struct {
#undef AVSC_DECLARE_FUNC
} AviSynthLibrary;
-struct AviSynthContext {
+typedef struct AviSynthContext {
AVS_ScriptEnvironment *env;
AVS_Clip *clip;
const AVS_VideoInfo *vi;
@@ -91,8 +91,7 @@ struct AviSynthContext {
/* Linked list pointers. */
struct AviSynthContext *next;
-};
-typedef struct AviSynthContext AviSynthContext;
+} AviSynthContext;
static const int avs_planes_packed[1] = { 0 };
static const int avs_planes_grey[1] = { AVS_PLANAR_Y };
More information about the ffmpeg-cvslog
mailing list