comparison rtpdec_amr.c @ 6196:a2e2f11f6124 libavformat

Reindent Patch by Josh Allmann, joshua dot allmann at gmail
author mstorsjo
date Mon, 28 Jun 2010 20:37:16 +0000
parents 51ea3f882776
children 491eea5c52d6
comparison
equal deleted inserted replaced
6195:51ea3f882776 6196:a2e2f11f6124
141 } 141 }
142 142
143 static int amr_parse_fmtp(AVStream *stream, PayloadContext *data, 143 static int amr_parse_fmtp(AVStream *stream, PayloadContext *data,
144 char *attr, char *value) 144 char *attr, char *value)
145 { 145 {
146 /* Some AMR SDP configurations contain "octet-align", without 146 /* Some AMR SDP configurations contain "octet-align", without
147 * the trailing =1. Therefore, if the value is empty, 147 * the trailing =1. Therefore, if the value is empty,
148 * interpret it as "1". 148 * interpret it as "1".
149 */ 149 */
150 if (!strcmp(value, "")) { 150 if (!strcmp(value, "")) {
151 av_log(NULL, AV_LOG_WARNING, "AMR fmtp attribute %s had " 151 av_log(NULL, AV_LOG_WARNING, "AMR fmtp attribute %s had "
152 "nonstandard empty value\n", attr); 152 "nonstandard empty value\n", attr);
153 strcpy(value, "1"); 153 strcpy(value, "1");
154 } 154 }
155 if (!strcmp(attr, "octet-align")) 155 if (!strcmp(attr, "octet-align"))
156 data->octet_align = atoi(value); 156 data->octet_align = atoi(value);
157 else if (!strcmp(attr, "crc")) 157 else if (!strcmp(attr, "crc"))
158 data->crc = atoi(value); 158 data->crc = atoi(value);
159 else if (!strcmp(attr, "interleaving")) 159 else if (!strcmp(attr, "interleaving"))
160 data->interleaving = atoi(value); 160 data->interleaving = atoi(value);
161 else if (!strcmp(attr, "channels")) 161 else if (!strcmp(attr, "channels"))
162 data->channels = atoi(value); 162 data->channels = atoi(value);
163 return 0; 163 return 0;
164 } 164 }
165 165
166 static int amr_parse_sdp_line(AVFormatContext *s, int st_index, 166 static int amr_parse_sdp_line(AVFormatContext *s, int st_index,
167 PayloadContext *data, const char *line) 167 PayloadContext *data, const char *line)