Skip to content

Commit 72dad74

Browse files
committed
remove white space
Signed-off-by: Anshul Maheshwari <[email protected]>
1 parent e262b06 commit 72dad74

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

src/lib_ccx/ccx_decoders_isdb.c

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ typedef struct
257257
struct list_head text_list_head;
258258
/**
259259
* Keep second list to confirm that string does not get repeated
260-
* Used in No Rollup in Configuration and ISDB specs have string in
260+
* Used in No Rollup in Configuration and ISDB specs have string in
261261
* rollup mode
262262
* For Second Pass
263263
*/
@@ -309,8 +309,8 @@ static void init_layout(ISDBSubLayout *ls)
309309
ls->display_area.x = 0;
310310
ls->display_area.y = 0;
311311

312-
ls->font_scale.fscx = 100;
313-
ls->font_scale.fscy = 100;
312+
ls->font_scale.fscx = 100;
313+
ls->font_scale.fscy = 100;
314314

315315
}
316316

@@ -474,8 +474,8 @@ static int ccx_strstr_ignorespace(const unsigned char *str1, const unsigned char
474474
/**
475475
* Copy data not more then len provided
476476
* User should check for return type to check how much data he has got
477-
*
478-
* If ISDB is configured with no rollup then only text which has gone
477+
*
478+
* If ISDB is configured with no rollup then only text which has gone
479479
* off site should be returned
480480
*/
481481
static int get_text(ISDBSubContext *ctx, unsigned char *buffer, int len)
@@ -1175,7 +1175,7 @@ static int parse_caption_management_data(ISDBSubContext *ctx, const uint8_t *buf
11751175
* clock control mode is in offset time mode. Offset time is coded in the
11761176
* order of hour, minute, second and millisecond, using nine 4-bit binary
11771177
* coded decimals (BCD).
1178-
*
1178+
*
11791179
* +-----------+-----------+---------+--------------+
11801180
* | hour | minute | sec | millisecond |
11811181
* +-----------+-----------+---------+--------------+
@@ -1193,8 +1193,6 @@ static int parse_caption_management_data(ISDBSubContext *ctx, const uint8_t *buf
11931193
isdb_log("CC MGMT DATA: OTD( h:%d m:%d s:%d millis: %d\n",
11941194
ctx->offset_time.hour, ctx->offset_time.min,
11951195
ctx->offset_time.sec, ctx->offset_time.milli);
1196-
1197-
11981196
}
11991197
else
12001198
{
@@ -1225,7 +1223,7 @@ static int parse_caption_management_data(ISDBSubContext *ctx, const uint8_t *buf
12251223
isdb_log("CC MGMT DATA: TCS: 0x%X\n", (*buf>>2)&0x3);
12261224
ctx->current_state.rollup_mode = !!(*buf&0x3);
12271225
isdb_log("CC MGMT DATA: Rollup mode: 0x%X\n", ctx->current_state.rollup_mode);
1228-
}
1226+
}
12291227
return buf - buf_pivot;
12301228
}
12311229

src/lib_ccx/ccx_encoders_common.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ int change_utf8_encoding(unsigned char* dest, unsigned char* src, int len, enum
143143
c = utf8_to_latin1_map( (((unsigned int)(src[0] & 0x0F)) << 12)
144144
| (((unsigned int)(src[1] & 0x3F)) << 6)
145145
| ((unsigned int)(src[2] & 0x3F)) );
146-
if (c < 256)
147-
*dest++ = c;
146+
if (c < 256)
147+
*dest++ = c;
148148
else
149149
*dest++ = '?';
150150
}
@@ -153,7 +153,7 @@ int change_utf8_encoding(unsigned char* dest, unsigned char* src, int len, enum
153153
{
154154
if ((src[1] & 0x40) == 0 &&
155155
(src[2] & 0x40) == 0 &&
156-
(src[3] & 0x40) == 0)
156+
(src[3] & 0x40) == 0)
157157
{
158158
c = utf8_to_latin1_map( (((unsigned int)(src[0] & 0x07)) << 18)
159159
| (((unsigned int)(src[1] & 0x3F)) << 12)
@@ -179,11 +179,11 @@ int change_utf8_encoding(unsigned char* dest, unsigned char* src, int len, enum
179179
| (((unsigned int)(src[2] & 0x3F)) << 12U)
180180
| (((unsigned int)(src[3] & 0x3F)) << 6U)
181181
| ((unsigned int)(src[4] & 0x3FU)) );
182-
if (c < 256)
183-
*(dest++) = c;
182+
if (c < 256)
183+
*(dest++) = c;
184184
else
185185
*dest++ = '?';
186-
}
186+
}
187187
else
188188
*dest++ = '?';
189189
}

0 commit comments

Comments
 (0)