[vlc-devel] [PATCH] codec/cc: cc_Init: clean-up
Filip Roséen
filip at atch.se
Thu May 18 12:47:55 CEST 2017
Narrow scope of the iteration variable, while also removing trailing
whitespace from within the loop-body.
---
modules/codec/cc.h | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/codec/cc.h b/modules/codec/cc.h
index 7a76f2a734..7af03b22f8 100644
--- a/modules/codec/cc.h
+++ b/modules/codec/cc.h
@@ -62,10 +62,8 @@ typedef struct
static inline void cc_Init( cc_data_t *c )
{
- int i;
-
- for( i = 0; i < 4; i++ )
- c-> pb_present[i] = false;
+ for( int i = 0; i < 4; i++ )
+ c->pb_present[i] = false;
c->i_data = 0;
c->b_reorder = false;
c->i_payload_type = CC_PAYLOAD_NONE;
--
2.12.2
More information about the vlc-devel
mailing list