[FFmpeg-cvslog] r23862 - trunk/libavformat/rtpdec_amr.c

mstorsjo subversion
Mon Jun 28 22:37:16 CEST 2010


Author: mstorsjo
Date: Mon Jun 28 22:37:16 2010
New Revision: 23862

Log:
Reindent

Patch by Josh Allmann, joshua dot allmann at gmail

Modified:
   trunk/libavformat/rtpdec_amr.c

Modified: trunk/libavformat/rtpdec_amr.c
==============================================================================
--- trunk/libavformat/rtpdec_amr.c	Mon Jun 28 22:35:21 2010	(r23861)
+++ trunk/libavformat/rtpdec_amr.c	Mon Jun 28 22:37:16 2010	(r23862)
@@ -143,23 +143,23 @@ static int amr_handle_packet(AVFormatCon
 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;
 }
 



More information about the ffmpeg-cvslog mailing list