lavfi/hdcd: fix style
authorClément Bœsch <clement@stupeflix.com>
Thu, 28 Jul 2016 07:29:45 +0000 (09:29 +0200)
committerClément Bœsch <clement@stupeflix.com>
Thu, 28 Jul 2016 07:30:10 +0000 (09:30 +0200)
libavfilter/af_hdcd.c

index 6b406e7..63ee177 100644 (file)
@@ -852,16 +852,16 @@ typedef struct {
 } hdcd_state_t;
 
 typedef enum {
-    HDCD_PE_NEVER        =0,
-    HDCD_PE_INTERMITTENT =1,
-    HDCD_PE_PERMANENT    =2
+    HDCD_PE_NEVER        = 0,
+    HDCD_PE_INTERMITTENT = 1,
+    HDCD_PE_PERMANENT    = 2,
 } hdcd_pe_t;
 
 static const char * const pe_str[] = {
     "never enabled",
     "enabled intermittently",
     "enabled permanently"
-    };
+};
 
 typedef struct HDCDContext {
     const AVClass *class;
@@ -1165,7 +1165,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
             s->peak_extend = HDCD_PE_PERMANENT;
         else
             s->peak_extend = HDCD_PE_INTERMITTENT;
-    } else s->peak_extend = HDCD_PE_NEVER;
+    } else {
+        s->peak_extend = HDCD_PE_NEVER;
+    }
     /* HDCD is detected if a valid packet is active in all (both)
      * channels at the same time. */
     if (detect == inlink->channels) s->hdcd_detected = 1;