Revision 9dff2308

View differences:

libavformat/rtpdec_amr.c
142 142
        while (*p && *p == ' ') p++; /* strip trailing spaces */
143 143

  
144 144
        while (ff_rtsp_next_attr_and_value(&p, attr, sizeof(attr), value, sizeof(value))) {
145
            /* Some AMR SDP configurations contain "octet-align", without
146
             * the trailing =1. Therefore, if the value is empty,
147
             * interpret it as "1".
148
             */
149
            if (!strcmp(value, "")) {
150
                av_log(s, AV_LOG_WARNING, "AMR fmtp attribute %s had "
151
                                          "nonstandard empty value\n", attr);
152
                strcpy(value, "1");
153
            }
145 154
            if (!strcmp(attr, "octet-align"))
146 155
                octet_align = atoi(value);
147 156
            else if (!strcmp(attr, "crc"))

Also available in: Unified diff