diff options
author | Josh Allmann <joshua.allmann@gmail.com> | 2010-06-28 11:35:18 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-06-28 11:35:18 +0000 |
commit | 4332bfbff865c41d27d09eaf73409eac544e1350 (patch) | |
tree | 6b2416bc48897f617ab66a6f5a4c6007d252b044 | |
parent | efc6d451965754a7982f68437645d88a400b3fbb (diff) | |
download | ffmpeg-streaming-4332bfbff865c41d27d09eaf73409eac544e1350.zip ffmpeg-streaming-4332bfbff865c41d27d09eaf73409eac544e1350.tar.gz |
Reindent
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 23852 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/rtpdec_mpeg4.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c index cf1e7fa..d443b64 100644 --- a/libavformat/rtpdec_mpeg4.c +++ b/libavformat/rtpdec_mpeg4.c @@ -225,28 +225,28 @@ static int parse_fmtp(AVStream *stream, PayloadContext *data, 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; } + } + return 0; +} static int parse_sdp_line(AVFormatContext *s, int st_index, PayloadContext *data, const char *line) |