Commit 37abc8cc authored by Clément Bœsch's avatar Clément Bœsch

lavfi/hdcd: fix style

parent 4791716c
...@@ -852,16 +852,16 @@ typedef struct { ...@@ -852,16 +852,16 @@ typedef struct {
} hdcd_state_t; } hdcd_state_t;
typedef enum { typedef enum {
HDCD_PE_NEVER =0, HDCD_PE_NEVER = 0,
HDCD_PE_INTERMITTENT =1, HDCD_PE_INTERMITTENT = 1,
HDCD_PE_PERMANENT =2 HDCD_PE_PERMANENT = 2,
} hdcd_pe_t; } hdcd_pe_t;
static const char * const pe_str[] = { static const char * const pe_str[] = {
"never enabled", "never enabled",
"enabled intermittently", "enabled intermittently",
"enabled permanently" "enabled permanently"
}; };
typedef struct HDCDContext { typedef struct HDCDContext {
const AVClass *class; const AVClass *class;
...@@ -1165,7 +1165,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) ...@@ -1165,7 +1165,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
s->peak_extend = HDCD_PE_PERMANENT; s->peak_extend = HDCD_PE_PERMANENT;
else else
s->peak_extend = HDCD_PE_INTERMITTENT; 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) /* HDCD is detected if a valid packet is active in all (both)
* channels at the same time. */ * channels at the same time. */
if (detect == inlink->channels) s->hdcd_detected = 1; if (detect == inlink->channels) s->hdcd_detected = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment