Mercurial > libavformat.hg
changeset 6192:b93d7a25cd6b libavformat
Reindent
Patch by Josh Allmann, joshua dot allmann at gmail
author | mstorsjo |
---|---|
date | Mon, 28 Jun 2010 11:35:18 +0000 |
parents | 7884ec350d88 |
children | da9998b48dff |
files | rtpdec_mpeg4.c |
diffstat | 1 files changed, 18 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/rtpdec_mpeg4.c Mon Jun 28 11:30:44 2010 +0000 +++ b/rtpdec_mpeg4.c Mon Jun 28 11:35:18 2010 +0000 @@ -225,28 +225,28 @@ AVCodecContext *codec = stream->codec; int res, i; - if (!strcmp(attr, "config")) { - res = parse_fmtp_config(codec, value); + if (!strcmp(attr, "config")) { + res = parse_fmtp_config(codec, value); - if (res < 0) - return res; - } + if (res < 0) + return res; + } - if (codec->codec_id == CODEC_ID_AAC) { - /* Looking for a known attribute */ - for (i = 0; attr_names[i].str; ++i) { - if (!strcasecmp(attr, attr_names[i].str)) { - if (attr_names[i].type == ATTR_NAME_TYPE_INT) { - *(int *)((char *)data+ - attr_names[i].offset) = atoi(value); - } else if (attr_names[i].type == ATTR_NAME_TYPE_STR) - *(char **)((char *)data+ - attr_names[i].offset) = av_strdup(value); - } - } + if (codec->codec_id == CODEC_ID_AAC) { + /* Looking for a known attribute */ + for (i = 0; attr_names[i].str; ++i) { + if (!strcasecmp(attr, attr_names[i].str)) { + if (attr_names[i].type == ATTR_NAME_TYPE_INT) { + *(int *)((char *)data+ + attr_names[i].offset) = atoi(value); + } else if (attr_names[i].type == ATTR_NAME_TYPE_STR) + *(char **)((char *)data+ + attr_names[i].offset) = av_strdup(value); } + } + } return 0; - } +} static int parse_sdp_line(AVFormatContext *s, int st_index, PayloadContext *data, const char *line)