Reindent
Patch by Josh Allmann, joshua dot allmann at gmail Originally committed as revision 23852 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
efc6d45196
commit
4332bfbff8
@ -225,28 +225,28 @@ static int parse_fmtp(AVStream *stream, PayloadContext *data,
|
|||||||
AVCodecContext *codec = stream->codec;
|
AVCodecContext *codec = stream->codec;
|
||||||
int res, i;
|
int res, i;
|
||||||
|
|
||||||
if (!strcmp(attr, "config")) {
|
if (!strcmp(attr, "config")) {
|
||||||
res = parse_fmtp_config(codec, value);
|
res = parse_fmtp_config(codec, value);
|
||||||
|
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (codec->codec_id == CODEC_ID_AAC) {
|
if (codec->codec_id == CODEC_ID_AAC) {
|
||||||
/* Looking for a known attribute */
|
/* Looking for a known attribute */
|
||||||
for (i = 0; attr_names[i].str; ++i) {
|
for (i = 0; attr_names[i].str; ++i) {
|
||||||
if (!strcasecmp(attr, attr_names[i].str)) {
|
if (!strcasecmp(attr, attr_names[i].str)) {
|
||||||
if (attr_names[i].type == ATTR_NAME_TYPE_INT) {
|
if (attr_names[i].type == ATTR_NAME_TYPE_INT) {
|
||||||
*(int *)((char *)data+
|
*(int *)((char *)data+
|
||||||
attr_names[i].offset) = atoi(value);
|
attr_names[i].offset) = atoi(value);
|
||||||
} else if (attr_names[i].type == ATTR_NAME_TYPE_STR)
|
} else if (attr_names[i].type == ATTR_NAME_TYPE_STR)
|
||||||
*(char **)((char *)data+
|
*(char **)((char *)data+
|
||||||
attr_names[i].offset) = av_strdup(value);
|
attr_names[i].offset) = av_strdup(value);
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int parse_sdp_line(AVFormatContext *s, int st_index,
|
static int parse_sdp_line(AVFormatContext *s, int st_index,
|
||||||
PayloadContext *data, const char *line)
|
PayloadContext *data, const char *line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user