[vlc-commits] codec/cc: cc_Init: clean-up
Filip Roséen
git at videolan.org
Thu May 18 18:21:09 CEST 2017
vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 12:47:55 2017 +0200| [0d1653a3ce9da16b04cbd1687770ddcecf1f4b4a] | committer: Rémi Denis-Courmont
codec/cc: cc_Init: clean-up
Narrow scope of the iteration variable, while also removing trailing
whitespace from within the loop-body.
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d1653a3ce9da16b04cbd1687770ddcecf1f4b4a
---
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;
More information about the vlc-commits
mailing list