[FFmpeg-devel,v2,9/9] av1_parser: Reindent

Submitted by Mark Thompson on April 1, 2019, 11:39 p.m.

Details

Message ID 20190401233940.5941-9-sw@jkqxz.net
State New
Headers show

Commit Message

Mark Thompson April 1, 2019, 11:39 p.m.
---
 libavcodec/av1_parser.c | 74 ++++++++++++++++++++---------------------
 1 file changed, 37 insertions(+), 37 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libavcodec/av1_parser.c b/libavcodec/av1_parser.c
index 4a743d92d4..b848b41050 100644
--- a/libavcodec/av1_parser.c
+++ b/libavcodec/av1_parser.c
@@ -88,43 +88,43 @@  static int av1_parser_parse(AVCodecParserContext *ctx,
     seq = av1->sequence_header;
     color = &seq->color_config;
 
-            ctx->width  = av1->frame_width;
-            ctx->height = av1->frame_height;
-
-            ctx->key_frame = frame->frame_type == AV1_FRAME_KEY;
-
-        avctx->profile = seq->seq_profile;
-        avctx->level   = seq->seq_level_idx[0];
-
-        switch (frame->frame_type) {
-        case AV1_FRAME_KEY:
-        case AV1_FRAME_INTRA_ONLY:
-            ctx->pict_type = AV_PICTURE_TYPE_I;
-            break;
-        case AV1_FRAME_INTER:
-            ctx->pict_type = AV_PICTURE_TYPE_P;
-            break;
-        case AV1_FRAME_SWITCH:
-            ctx->pict_type = AV_PICTURE_TYPE_SP;
-            break;
-        }
-        ctx->picture_structure = AV_PICTURE_STRUCTURE_FRAME;
-
-        switch (av1->bit_depth) {
-        case 8:
-            ctx->format = color->mono_chrome ? AV_PIX_FMT_GRAY8
-                                             : pix_fmts_8bit [color->subsampling_x][color->subsampling_y];
-            break;
-        case 10:
-            ctx->format = color->mono_chrome ? AV_PIX_FMT_GRAY10
-                                             : pix_fmts_10bit[color->subsampling_x][color->subsampling_y];
-            break;
-        case 12:
-            ctx->format = color->mono_chrome ? AV_PIX_FMT_GRAY12
-                                             : pix_fmts_12bit[color->subsampling_x][color->subsampling_y];
-            break;
-        }
-        av_assert2(ctx->format != AV_PIX_FMT_NONE);
+    ctx->width  = av1->frame_width;
+    ctx->height = av1->frame_height;
+
+    ctx->key_frame = frame->frame_type == AV1_FRAME_KEY;
+
+    avctx->profile = seq->seq_profile;
+    avctx->level   = seq->seq_level_idx[0];
+
+    switch (frame->frame_type) {
+    case AV1_FRAME_KEY:
+    case AV1_FRAME_INTRA_ONLY:
+        ctx->pict_type = AV_PICTURE_TYPE_I;
+        break;
+    case AV1_FRAME_INTER:
+        ctx->pict_type = AV_PICTURE_TYPE_P;
+        break;
+    case AV1_FRAME_SWITCH:
+        ctx->pict_type = AV_PICTURE_TYPE_SP;
+        break;
+    }
+    ctx->picture_structure = AV_PICTURE_STRUCTURE_FRAME;
+
+    switch (av1->bit_depth) {
+    case 8:
+        ctx->format = color->mono_chrome ? AV_PIX_FMT_GRAY8
+                                         : pix_fmts_8bit [color->subsampling_x][color->subsampling_y];
+        break;
+    case 10:
+        ctx->format = color->mono_chrome ? AV_PIX_FMT_GRAY10
+                                         : pix_fmts_10bit[color->subsampling_x][color->subsampling_y];
+        break;
+    case 12:
+        ctx->format = color->mono_chrome ? AV_PIX_FMT_GRAY12
+                                         : pix_fmts_12bit[color->subsampling_x][color->subsampling_y];
+        break;
+    }
+    av_assert2(ctx->format != AV_PIX_FMT_NONE);
 
 end:
     s->cbc->log_ctx = NULL;