mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
build on gcc 2.95
Original commit message from CVS: build on gcc 2.95
This commit is contained in:
parent
ff81abd2bf
commit
4897f53640
2 changed files with 2 additions and 2 deletions
|
@ -148,6 +148,7 @@ static guint8 UIDENTITY(guint8 x) { return x; };
|
||||||
static gint8 IDENTITY(gint8 x) { return x; };
|
static gint8 IDENTITY(gint8 x) { return x; };
|
||||||
#define POPULATE(format, be_func, le_func) {\
|
#define POPULATE(format, be_func, le_func) {\
|
||||||
format val = (format) int_value;\
|
format val = (format) int_value;\
|
||||||
|
format *p = data;\
|
||||||
switch (src->endianness) {\
|
switch (src->endianness) {\
|
||||||
case G_LITTLE_ENDIAN:\
|
case G_LITTLE_ENDIAN:\
|
||||||
val = le_func (val);\
|
val = le_func (val);\
|
||||||
|
@ -158,7 +159,6 @@ static gint8 IDENTITY(gint8 x) { return x; };
|
||||||
default: \
|
default: \
|
||||||
g_assert_not_reached ();\
|
g_assert_not_reached ();\
|
||||||
};\
|
};\
|
||||||
format *p = data;\
|
|
||||||
for (j = 0; j < src->channels; j++) {\
|
for (j = 0; j < src->channels; j++) {\
|
||||||
*p = val;\
|
*p = val;\
|
||||||
p ++;\
|
p ++;\
|
||||||
|
|
|
@ -148,6 +148,7 @@ static guint8 UIDENTITY(guint8 x) { return x; };
|
||||||
static gint8 IDENTITY(gint8 x) { return x; };
|
static gint8 IDENTITY(gint8 x) { return x; };
|
||||||
#define POPULATE(format, be_func, le_func) {\
|
#define POPULATE(format, be_func, le_func) {\
|
||||||
format val = (format) int_value;\
|
format val = (format) int_value;\
|
||||||
|
format *p = data;\
|
||||||
switch (src->endianness) {\
|
switch (src->endianness) {\
|
||||||
case G_LITTLE_ENDIAN:\
|
case G_LITTLE_ENDIAN:\
|
||||||
val = le_func (val);\
|
val = le_func (val);\
|
||||||
|
@ -158,7 +159,6 @@ static gint8 IDENTITY(gint8 x) { return x; };
|
||||||
default: \
|
default: \
|
||||||
g_assert_not_reached ();\
|
g_assert_not_reached ();\
|
||||||
};\
|
};\
|
||||||
format *p = data;\
|
|
||||||
for (j = 0; j < src->channels; j++) {\
|
for (j = 0; j < src->channels; j++) {\
|
||||||
*p = val;\
|
*p = val;\
|
||||||
p ++;\
|
p ++;\
|
||||||
|
|
Loading…
Reference in a new issue