Fixes remaining \r\n is ASS header after 57c545090d.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -522,14 +522,14 @@ static int set_ass_header(ARIBCaptionContext *ctx) · 521 unmodified lines | ||
| 522 | 522 | |
| 523 | 523 | av_freep(&avctx->subtitle_header); |
| 524 | 524 | avctx->subtitle_header = av_asprintf( |
| 525 | − "[Script Info]\r\n" | |
| 526 | − "ScriptType: v4.00+\r\n" | |
| 527 | − "PlayResX: %d\r\n" | |
| 528 | − "PlayResY: %d\r\n" | |
| 529 | − "WrapStyle: 2\r\n" /* 2: no word wrapping */ | |
| 530 | − "\r\n" | |
| 531 | − | |
| 532 | − "[V4+ Styles]\r\n" | |
| 525 | + "[Script Info]\n" | |
| 526 | + "ScriptType: v4.00+\n" | |
| 527 | + "PlayResX: %d\n" | |
| 528 | + "PlayResY: %d\n" | |
| 529 | + "WrapStyle: 2\n" /* 2: no word wrapping */ | |
| 530 | + "\n" | |
| 531 | + | |
| 532 | + "[V4+ Styles]\n" | |
| 533 | 533 | "Format: Name, " |
| 534 | 534 | "Fontname, Fontsize, " |
| 535 | 535 | "PrimaryColour, SecondaryColour, OutlineColour, BackColour, " |
| @@ -538,7 +538,7 @@ static int set_ass_header(ARIBCaptionContext *ctx) · 2 unmodified lines | ||
| 538 | 538 | "Spacing, Angle, " |
| 539 | 539 | "BorderStyle, Outline, Shadow, " |
| 540 | 540 | "Alignment, MarginL, MarginR, MarginV, " |
| 541 | − "Encoding\r\n" | |
| 541 | + "Encoding\n" | |
| 542 | 542 | |
| 543 | 543 | "Style: " |
| 544 | 544 | "Default," /* Name */ |
| @@ -549,11 +549,11 @@ static int set_ass_header(ARIBCaptionContext *ctx) · 4 unmodified lines | ||
| 549 | 549 | "0,0," /* Spacing, Angle */ |
| 550 | 550 | "%d,%d,%d," /* BorderStyle, Outline, Shadow */ |
| 551 | 551 | "%d,10,10,10," /* Alignment, Margin[LRV] */ |
| 552 | − "0\r\n" /* Encoding */ | |
| 553 | − "\r\n" | |
| 552 | + "0\n" /* Encoding */ | |
| 553 | + "\n" | |
| 554 | 554 | |
| 555 | − "[Events]\r\n" | |
| 556 | − "Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text\r\n", | |
| 555 | + "[Events]\n" | |
| 556 | + "Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text\n", | |
| 557 | 557 | ctx->plane_width, ctx->plane_height, |
| 558 | 558 | font_name, ctx->font_size, |
| 559 | 559 | ASS_DEFAULT_COLOR, ASS_DEFAULT_COLOR, |