summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_amr.c
diff options
context:
space:
mode:
authorJosh Allmann <joshua.allmann@gmail.com>2010-06-28 20:37:16 +0000
committerMartin Storsjö <martin@martin.st>2010-06-28 20:37:16 +0000
commitbb06ec5ef480cd1d056b00d781e9f2803b0db798 (patch)
tree5014879bc551d9d92fc3ac1418d42baf64737020 /libavformat/rtpdec_amr.c
parenta494295197a21a728972f31534157414f1939183 (diff)
Reindent
Patch by Josh Allmann, joshua dot allmann at gmail Originally committed as revision 23862 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpdec_amr.c')
-rw-r--r--libavformat/rtpdec_amr.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/libavformat/rtpdec_amr.c b/libavformat/rtpdec_amr.c
index 94db73925e..737b411a91 100644
--- a/libavformat/rtpdec_amr.c
+++ b/libavformat/rtpdec_amr.c
@@ -143,23 +143,23 @@ static int amr_handle_packet(AVFormatContext *ctx,
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;
}