Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2016-07-28 10:29:45 +0300
committerClément Bœsch <clement@stupeflix.com>2016-07-28 10:30:10 +0300
commit37abc8cca2565eed7e1b1ff2560774faa371eb63 (patch)
tree1844afafb4b259107921bf7e3c0b9b285b3fe189 /libavfilter/af_hdcd.c
parent4791716c1dca53a3c9e900fdb47bea9731a2b2bd (diff)
lavfi/hdcd: fix style
Diffstat (limited to 'libavfilter/af_hdcd.c')
-rw-r--r--libavfilter/af_hdcd.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c
index 6b406e7abc..63ee177e4a 100644
--- a/libavfilter/af_hdcd.c
+++ b/libavfilter/af_hdcd.c
@@ -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;