diff options
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c index a83471d..3096edf 100644 --- a/src/audio.c +++ b/src/audio.c @@ -45,7 +45,7 @@ pull_buffer(GstAppSink *sink, gpointer user_data) data[pos++] = (udp_voice_celt_alpha << 5) | (udp_normal_talking); - encode_varint(&data[pos], &write, ++cm->sequence, 1024-pos); + encode_varint(&data[pos], &write, ++cm->sequence, sizeof(data)-pos); pos += write; data[pos++] = 0x00 /*: 0x80 */ | (GST_BUFFER_SIZE(buf) & 0x7F); |