aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-05-20 15:41:58 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-05-20 15:41:58 +0200
commit6adefeef45af637ea9aec32dfd5916812f1c5b37 (patch)
tree1fa614bf566550d77d2672b6379a2429f6c616e2
parentea07063fd82686af3fabb45e5ed10aa48d084d61 (diff)
downloadffmpeg-6adefeef45af637ea9aec32dfd5916812f1c5b37.tar.gz
buffersrc: cosmetic: reindent.
-rw-r--r--libavfilter/buffersrc.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 90f922ab9e..d4f74127e6 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -179,18 +179,17 @@ int av_buffersrc_add_ref(AVFilterContext *s, AVFilterBufferRef *buf, int flags)
return ret;
if (!(flags & AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT)) {
- /* TODO reindent */
- switch (s->outputs[0]->type) {
- case AVMEDIA_TYPE_VIDEO:
- CHECK_VIDEO_PARAM_CHANGE(s, c, buf->video->w, buf->video->h, buf->format);
- break;
- case AVMEDIA_TYPE_AUDIO:
- CHECK_AUDIO_PARAM_CHANGE(s, c, buf->audio->sample_rate, buf->audio->channel_layout,
- buf->format);
- break;
- default:
- return AVERROR(EINVAL);
- }
+ switch (s->outputs[0]->type) {
+ case AVMEDIA_TYPE_VIDEO:
+ CHECK_VIDEO_PARAM_CHANGE(s, c, buf->video->w, buf->video->h, buf->format);
+ break;
+ case AVMEDIA_TYPE_AUDIO:
+ CHECK_AUDIO_PARAM_CHANGE(s, c, buf->audio->sample_rate, buf->audio->channel_layout,
+ buf->format);
+ break;
+ default:
+ return AVERROR(EINVAL);
+ }
}
if (!(flags & AV_BUFFERSRC_FLAG_NO_COPY))
to_free = buf = copy_buffer_ref(s, buf);