[asterisk-commits] rizzo: branch rizzo/video_v2 r83054 - /team/rizzo/video_v2/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 19 05:20:40 CDT 2007


Author: rizzo
Date: Wed Sep 19 05:20:39 2007
New Revision: 83054

URL: http://svn.digium.com/view/asterisk?view=rev&rev=83054
Log:
use the correct type when accessing fbuf_t (patch by Sergio Fadda)


Modified:
    team/rizzo/video_v2/channels/console_video.c

Modified: team/rizzo/video_v2/channels/console_video.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/video_v2/channels/console_video.c?view=diff&rev=83054&r1=83053&r2=83054
==============================================================================
--- team/rizzo/video_v2/channels/console_video.c (original)
+++ team/rizzo/video_v2/channels/console_video.c Wed Sep 19 05:20:39 2007
@@ -63,7 +63,7 @@
 +# GCC configuration flags for SDL library
 +ASTCFLAGS+=`sdl-config --cflags`
 +# Add library for ffmpeg and SDL lib.
-+SOLINK+=-lavcodec -lz -lm -g `sdl-config --libs`
++AST_LIBS+=-lavcodec -lz -lm -g `sdl-config --libs`
 +
  # This is used when generating the doxygen documentation
  ifneq ($(DOT),:)
@@ -347,9 +347,9 @@
 			int x, y;
 			int ulen = (v->h * v->w) / 4;
 			uint16_t *src = (uint16_t *)v->image->data;
-			char *dst = v->buf.data;
-			char *up = dst + ulen*4;
-			char *vp = up + ulen;
+			uint8_t *dst = v->buf.data;
+			uint8_t *up = dst + ulen*4;
+			uint8_t *vp = up + ulen;
 
 			for (y = 0; y < v->h; y++) {
 			    for (x = 0; x < v->w; x++) {
@@ -725,7 +725,7 @@
 	AVCodecContext *c;	/* shorthand */
 	SDL_Overlay *bmp;
 	AVPicture *pict_in = NULL;	/* conversion source */
-	char *src = NULL;	/* pixel input */
+	uint8_t *src = NULL;	/* pixel input */
 	int pix_fmt;
 
 	if (!env->sdl_ok)




More information about the asterisk-commits mailing list