mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-18 06:59:57 -05:00
Accidental use of a swapped int.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@441 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
11c6cac324
commit
d429222476
1 changed files with 3 additions and 2 deletions
|
|
@ -149,14 +149,15 @@ void pa_tagstruct_put_sample_spec(struct pa_tagstruct *t, const struct pa_sample
|
|||
}
|
||||
|
||||
void pa_tagstruct_put_arbitrary(struct pa_tagstruct *t, const void *p, size_t length) {
|
||||
uint32_t tmp;
|
||||
assert(t && p);
|
||||
|
||||
extend(t, 5+length);
|
||||
t->data[t->length] = TAG_ARBITRARY;
|
||||
tmp = htonl(length);
|
||||
memcpy(t->data+t->length+1, &tmp, 4);
|
||||
if (length)
|
||||
memcpy(t->data+t->length+5, p, length);
|
||||
length = htonl(length);
|
||||
memcpy(t->data+t->length+1, &length, 4);
|
||||
t->length += 5+length;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue