|
|
@ -137,7 +137,7 @@ static int amr_handle_packet(AVFormatContext *ctx, PayloadContext *data, |
|
|
|
|
|
|
|
|
|
|
|
static int amr_parse_fmtp(AVFormatContext *s, |
|
|
|
static int amr_parse_fmtp(AVFormatContext *s, |
|
|
|
AVStream *stream, PayloadContext *data, |
|
|
|
AVStream *stream, PayloadContext *data, |
|
|
|
char *attr, char *value) |
|
|
|
const char *attr, const char *value) |
|
|
|
{ |
|
|
|
{ |
|
|
|
/* Some AMR SDP configurations contain "octet-align", without
|
|
|
|
/* Some AMR SDP configurations contain "octet-align", without
|
|
|
|
* the trailing =1. Therefore, if the value is empty, |
|
|
|
* the trailing =1. Therefore, if the value is empty, |
|
|
@ -146,7 +146,7 @@ static int amr_parse_fmtp(AVFormatContext *s, |
|
|
|
if (!strcmp(value, "")) { |
|
|
|
if (!strcmp(value, "")) { |
|
|
|
av_log(s, AV_LOG_WARNING, "AMR fmtp attribute %s had " |
|
|
|
av_log(s, AV_LOG_WARNING, "AMR fmtp attribute %s had " |
|
|
|
"nonstandard empty value\n", attr); |
|
|
|
"nonstandard empty value\n", attr); |
|
|
|
strcpy(value, "1"); |
|
|
|
value = "1"; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!strcmp(attr, "octet-align")) |
|
|
|
if (!strcmp(attr, "octet-align")) |
|
|
|
data->octet_align = atoi(value); |
|
|
|
data->octet_align = atoi(value); |
|
|
|