Mercurial > libavformat.hg
comparison rtsp.c @ 4088:526755859ce5 libavformat
Rename type to be consistent
author | lu_zero |
---|---|
date | Sat, 13 Dec 2008 10:45:44 +0000 |
parents | 8adccfc01be3 |
children | af2c0aef892b |
comparison
equal
deleted
inserted
replaced
4087:950dc8531665 | 4088:526755859ce5 |
---|---|
281 break; | 281 break; |
282 } | 282 } |
283 return; | 283 return; |
284 } | 284 } |
285 | 285 |
286 typedef struct attrname_map | 286 typedef struct { |
287 { | |
288 const char *str; | 287 const char *str; |
289 uint16_t type; | 288 uint16_t type; |
290 uint32_t offset; | 289 uint32_t offset; |
291 } attrname_map_t; | 290 } AttrNameMap; |
292 | 291 |
293 /* All known fmtp parmeters and the corresping RTPAttrTypeEnum */ | 292 /* All known fmtp parmeters and the corresping RTPAttrTypeEnum */ |
294 #define ATTR_NAME_TYPE_INT 0 | 293 #define ATTR_NAME_TYPE_INT 0 |
295 #define ATTR_NAME_TYPE_STR 1 | 294 #define ATTR_NAME_TYPE_STR 1 |
296 static const attrname_map_t attr_names[]= | 295 static const AttrNameMap attr_names[]= |
297 { | 296 { |
298 {"SizeLength", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, sizelength)}, | 297 {"SizeLength", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, sizelength)}, |
299 {"IndexLength", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, indexlength)}, | 298 {"IndexLength", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, indexlength)}, |
300 {"IndexDeltaLength", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, indexdeltalength)}, | 299 {"IndexDeltaLength", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, indexdeltalength)}, |
301 {"profile-level-id", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, profile_level_id)}, | 300 {"profile-level-id", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, profile_level_id)}, |