Skip to content

Commit 25f546a

Browse files
committed
docs: complete ASS/SSA positioning changelog entry; use scoped loop counters
1 parent c4483d5 commit 25f546a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

docs/CHANGES.TXT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
0.96 (2025-12-21)
22
-----------------
3-
- New: Added ASS/SSA \pos-based positioning for CEA-608 captions when layout
3+
- New: Added ASS/SSA \pos-based positioning for CEA-608 captions when layout is simple (1-2 rows)
44
- New: Added --list-tracks (-L) option to list all tracks in media files without processing
55
- Fix: Garbled captions from HDHomeRun and I/P-only H.264 streams (#1109)
66
- Fix: Enable stdout output for CEA-708 captions on Windows (#1693)

src/lib_ccx/ccx_encoders_ssa.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,8 @@ int write_cc_buffer_as_ssa(struct eia608_screen *data, struct encoder_ctx *conte
196196
int first_row = -1;
197197
int x, y;
198198
char pos_tag[64];
199-
int i;
200199

201-
for (i = 0; i < 15; i++)
200+
for (int i = 0; i < 15; i++)
202201
{
203202
if (data->row_used[i])
204203
{
@@ -209,7 +208,7 @@ int write_cc_buffer_as_ssa(struct eia608_screen *data, struct encoder_ctx *conte
209208
if (empty_buf)
210209
return 0;
211210

212-
for (i = 0; i < 15; i++)
211+
for (int i = 0; i < 15; i++)
213212
{
214213
if (data->row_used[i])
215214
used_row_count++;
@@ -251,7 +250,7 @@ int write_cc_buffer_as_ssa(struct eia608_screen *data, struct encoder_ctx *conte
251250

252251
if (used_row_count > 0 && used_row_count <= 2)
253252
{
254-
for (i = 0; i < 15; i++)
253+
for (int i = 0; i < 15; i++)
255254
{
256255
if (data->row_used[i])
257256
{
@@ -278,7 +277,7 @@ int write_cc_buffer_as_ssa(struct eia608_screen *data, struct encoder_ctx *conte
278277
/* ---- end ASS positioning ---- */
279278

280279
int line_count = 0;
281-
for (i = 0; i < 15; i++)
280+
for (int i = 0; i < 15; i++)
282281
{
283282
if (data->row_used[i])
284283
{

0 commit comments

Comments
 (0)