summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2017-01-03 17:44:55 +0100
committerMatthieu Bouron <mbouron@gopro.com>2017-01-12 10:22:52 +0100
commite2d336cf6499923691baf53b10d193aefa77fa89 (patch)
tree3e724ce7c4e2c59f06292c7df91de73dd59fb430 /libavfilter
parenteb3368178ed9e1b3401e1f71ceebcb510fbbdf52 (diff)
lavfi/framepool: re-indent after previous commit
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/framepool.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c
index 588dcb6da2..74235d4886 100644
--- a/libavfilter/framepool.c
+++ b/libavfilter/framepool.c
@@ -205,41 +205,41 @@ AVFrame *ff_frame_pool_get(FFFramePool *pool)
switch(pool->type) {
case AVMEDIA_TYPE_VIDEO:
- desc = av_pix_fmt_desc_get(pool->format);
- if (!desc) {
- goto fail;
- }
+ desc = av_pix_fmt_desc_get(pool->format);
+ if (!desc) {
+ goto fail;
+ }
- frame->width = pool->width;
- frame->height = pool->height;
- frame->format = pool->format;
+ frame->width = pool->width;
+ frame->height = pool->height;
+ frame->format = pool->format;
- for (i = 0; i < 4; i++) {
- frame->linesize[i] = pool->linesize[i];
- if (!pool->pools[i])
- break;
+ for (i = 0; i < 4; i++) {
+ frame->linesize[i] = pool->linesize[i];
+ if (!pool->pools[i])
+ break;
- frame->buf[i] = av_buffer_pool_get(pool->pools[i]);
- if (!frame->buf[i]) {
- goto fail;
- }
+ frame->buf[i] = av_buffer_pool_get(pool->pools[i]);
+ if (!frame->buf[i]) {
+ goto fail;
+ }
- frame->data[i] = frame->buf[i]->data;
- }
+ frame->data[i] = frame->buf[i]->data;
+ }
- if (desc->flags & AV_PIX_FMT_FLAG_PAL ||
- desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL) {
- enum AVPixelFormat format =
- pool->format == AV_PIX_FMT_PAL8 ? AV_PIX_FMT_BGR8 : pool->format;
+ if (desc->flags & AV_PIX_FMT_FLAG_PAL ||
+ desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL) {
+ enum AVPixelFormat format =
+ pool->format == AV_PIX_FMT_PAL8 ? AV_PIX_FMT_BGR8 : pool->format;
- av_assert0(frame->data[1] != NULL);
- if (avpriv_set_systematic_pal2((uint32_t *)frame->data[1], format) < 0) {
- goto fail;
+ av_assert0(frame->data[1] != NULL);
+ if (avpriv_set_systematic_pal2((uint32_t *)frame->data[1], format) < 0) {
+ goto fail;
+ }
}
- }
- frame->extended_data = frame->data;
- break;
+ frame->extended_data = frame->data;
+ break;
case AVMEDIA_TYPE_AUDIO:
frame->nb_samples = pool->nb_samples;
av_frame_set_channels(frame, pool->channels);