changeset 30561:84d86f175613

Move struct typedef pixbuf into the only .c file where it is used.
author reimar
date Tue, 16 Feb 2010 19:39:30 +0000
parents 5404e0c3acce
children 44c7925b0dee
files libvo/spuenc.c libvo/spuenc.h
diffstat 2 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/spuenc.c	Tue Feb 16 19:36:36 2010 +0000
+++ b/libvo/spuenc.c	Tue Feb 16 19:39:30 2010 +0000
@@ -31,6 +31,12 @@
 #include "unistd.h"
 #include "spuenc.h"
 
+typedef struct {
+	int x, y;
+	unsigned int rgb[4];
+	unsigned char* pixels;
+} pixbuf;
+
 static void
 encode_do_control(int x,int y, encodedata* ed, pixbuf* pb) {
 	int controlstart= ed->count;
--- a/libvo/spuenc.h	Tue Feb 16 19:36:36 2010 +0000
+++ b/libvo/spuenc.h	Tue Feb 16 19:39:30 2010 +0000
@@ -26,13 +26,6 @@
 #include <stdlib.h>
 #define DATASIZE 53220
 
-
-typedef struct {
-	int x, y;
-	unsigned int rgb[4];
-	unsigned char* pixels;
-} pixbuf;
-
 typedef struct {
 	unsigned char data[DATASIZE];
 	int count;	/* the count of bytes written */