mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
riff-media: port GST_BUFFER_DATA to 0.11 in conditional code branch
This commit is contained in:
parent
0046224d35
commit
d0a5cb8c01
1 changed files with 5 additions and 3 deletions
|
@ -913,14 +913,16 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
|
|
||||||
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
||||||
{
|
{
|
||||||
guint8 *data = GST_BUFFER_DATA (copy);
|
guint8 *data, *p;
|
||||||
gint n;
|
gint n;
|
||||||
|
|
||||||
|
data = p = gst_buffer_map (copy, NULL, NULL, GST_MAP_READWRITE);
|
||||||
/* own endianness */
|
/* own endianness */
|
||||||
for (n = 0; n < num_colors; n++) {
|
for (n = 0; n < num_colors; n++) {
|
||||||
GST_WRITE_UINT32_BE (data, GST_READ_UINT32_LE (data));
|
GST_WRITE_UINT32_BE (p, GST_READ_UINT32_LE (p));
|
||||||
data += sizeof (guint32);
|
p += sizeof (guint32);
|
||||||
}
|
}
|
||||||
|
gst_buffer_unmap (copy, data, -1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
gst_caps_set_simple (caps, "palette_data", GST_TYPE_BUFFER, copy, NULL);
|
gst_caps_set_simple (caps, "palette_data", GST_TYPE_BUFFER, copy, NULL);
|
||||||
|
|
Loading…
Reference in a new issue