enc_mindex.c and mpegindex.c each define a function called
buffer_look_ahead, and in each case the first parameter is of type
uint8_t *.
In each file, there is one call to this function that casts the first
argument to be of type char *.
This is wrong and causes GCC4 (at least) to whine. The enclosed patch
fixes this problem.
This is a patch to ivtv-0.3.7a.
===================================================================
RCS file: utils/RCS/enc_mindex.c,v
retrieving revision 1.1
diff -u -r1.1 utils/enc_mindex.c
--- utils/enc_mindex.c 2005/07/30 18:17:39 1.1
+++ utils/enc_mindex.c 2005/07/30 18:19:29
@@ -391,7 +391,7 @@
} else if (code == PES_TYPE_group_start) {
//if (buffer_look_ahead(bytes, 4) == 0) {
gop_header_t gop;
- if (buffer_look_ahead((char *)&gop, sizeof(gop)) == 0) {
+ if (buffer_look_ahead((uint8_t *)&gop, sizeof(gop)) == 0) {
gop.data = bswap(gop.data);
/*
int drop = ((bytes[0] & 0x80) > 0);
===================================================================
RCS file: utils/RCS/mpegindex.c,v
retrieving revision 1.1
diff -u -r1.1 utils/mpegindex.c
--- utils/mpegindex.c 2005/07/30 18:19:07 1.1
+++ utils/mpegindex.c 2005/07/30 18:20:32
@@ -386,7 +386,7 @@
} else if (code == PES_TYPE_group_start) {
//if (buffer_look_ahead(bytes, 4) == 0) {
gop_header_t gop;
- if (buffer_look_ahead((char *)&gop, sizeof(gop)) == 0) {
+ if (buffer_look_ahead((uint8_t *)&gop, sizeof(gop)) == 0) {
gop.data = bswap(gop.data);
/*
int drop = ((bytes[0] & 0x80) > 0);
================ end of patch ================
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
ivtv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel