diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
commit | 9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch) | |
tree | 2784370cda9bbf2da9114d70f05399c0b229d28c /ui/rtp_media.h | |
parent | Adding debian version 4.2.6-1. (diff) | |
download | wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/rtp_media.h')
-rw-r--r-- | ui/rtp_media.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/rtp_media.h b/ui/rtp_media.h index 2de2a853..6a6b1442 100644 --- a/ui/rtp_media.h +++ b/ui/rtp_media.h @@ -31,18 +31,18 @@ extern "C" { /* INTERFACE */ /****************************************************************************/ -typedef gint16 SAMPLE; -#define SAMPLE_MAX G_MAXINT16 -#define SAMPLE_MIN G_MININT16 +typedef int16_t SAMPLE; +#define SAMPLE_MAX INT16_MAX +#define SAMPLE_MIN INT16_MIN #define SAMPLE_NaN SAMPLE_MIN #define SAMPLE_BYTES (sizeof(SAMPLE) / sizeof(char)) /* Defines an RTP packet */ typedef struct _rtp_packet { - guint32 frame_num; /* Qt only */ + uint32_t frame_num; /* Qt only */ struct _rtp_info *info; /* the RTP dissected info */ double arrive_offset; /* arrive offset time since the beginning of the stream as ms in GTK UI and s in Qt UI */ - guint8* payload_data; + uint8_t* payload_data; } rtp_packet_t; /** Create a new hash table. @@ -70,7 +70,7 @@ GHashTable *rtp_decoder_hash_table_new(void); * @param sample_rate_ptr If non-NULL, receives the sample rate. * @return The number of decoded bytes on success, 0 on failure. */ -size_t decode_rtp_packet_payload(guint8 payload_type, const gchar *payload_type_str, int payload_rate, int payload_channels, wmem_map_t *payload_fmtp_map, guint8 *payload_data, size_t payload_len, SAMPLE **out_buff, GHashTable *decoders_hash, guint *channels_ptr, guint *sample_rate_ptr); +size_t decode_rtp_packet_payload(uint8_t payload_type, const char *payload_type_str, int payload_rate, int payload_channels, wmem_map_t *payload_fmtp_map, uint8_t *payload_data, size_t payload_len, SAMPLE **out_buff, GHashTable *decoders_hash, unsigned *channels_ptr, unsigned *sample_rate_ptr); /** Decode an RTP packet * @@ -81,7 +81,7 @@ size_t decode_rtp_packet_payload(guint8 payload_type, const gchar *payload_type_ * @param sample_rate_ptr If non-NULL, receives the sample rate. * @return The number of decoded bytes on success, 0 on failure. */ -size_t decode_rtp_packet(rtp_packet_t *rp, SAMPLE **out_buff, GHashTable *decoders_hash, guint *channels_ptr, guint *sample_rate_ptr); +size_t decode_rtp_packet(rtp_packet_t *rp, SAMPLE **out_buff, GHashTable *decoders_hash, unsigned *channels_ptr, unsigned *sample_rate_ptr); #ifdef __cplusplus } |