# HG changeset patch # User mstorsjo # Date 1277757436 0 # Node ID a2e2f11f612444d9cf52b903481c0e314a704d86 # Parent 51ea3f8827760d1f830665187c4db59bd010f737 Reindent Patch by Josh Allmann, joshua dot allmann at gmail diff -r 51ea3f882776 -r a2e2f11f6124 rtpdec_amr.c --- a/rtpdec_amr.c Mon Jun 28 20:35:21 2010 +0000 +++ b/rtpdec_amr.c Mon Jun 28 20:37:16 2010 +0000 @@ -143,23 +143,23 @@ static int amr_parse_fmtp(AVStream *stream, PayloadContext *data, char *attr, char *value) { - /* Some AMR SDP configurations contain "octet-align", without - * the trailing =1. Therefore, if the value is empty, - * interpret it as "1". - */ - if (!strcmp(value, "")) { - av_log(NULL, AV_LOG_WARNING, "AMR fmtp attribute %s had " - "nonstandard empty value\n", attr); - strcpy(value, "1"); - } - if (!strcmp(attr, "octet-align")) - data->octet_align = atoi(value); - else if (!strcmp(attr, "crc")) - data->crc = atoi(value); - else if (!strcmp(attr, "interleaving")) - data->interleaving = atoi(value); - else if (!strcmp(attr, "channels")) - data->channels = atoi(value); + /* Some AMR SDP configurations contain "octet-align", without + * the trailing =1. Therefore, if the value is empty, + * interpret it as "1". + */ + if (!strcmp(value, "")) { + av_log(NULL, AV_LOG_WARNING, "AMR fmtp attribute %s had " + "nonstandard empty value\n", attr); + strcpy(value, "1"); + } + if (!strcmp(attr, "octet-align")) + data->octet_align = atoi(value); + else if (!strcmp(attr, "crc")) + data->crc = atoi(value); + else if (!strcmp(attr, "interleaving")) + data->interleaving = atoi(value); + else if (!strcmp(attr, "channels")) + data->channels = atoi(value); return 0; }