Fixes remaining \r\n is ASS header after 57c545090d.
Unified · Split
| @@ -96,13 +96,13 @@ static int libaribb24_generate_ass_header(AVCodecContext *avctx) · 95 unmodified lines | ||
| 96 | 96 | font_size = get_profile_font_size(avctx); |
| 97 | 97 | |
| 98 | 98 | avctx->subtitle_header = av_asprintf( |
| 99 | − "[Script Info]\r\n" | |
| 100 | − "; Script generated by FFmpeg/Lavc%s\r\n" | |
| 101 | − "ScriptType: v4.00+\r\n" | |
| 102 | − "PlayResX: %d\r\n" | |
| 103 | − "PlayResY: %d\r\n" | |
| 104 | − "\r\n" | |
| 105 | − "[V4+ Styles]\r\n" | |
| 99 | + "[Script Info]\n" | |
| 100 | + "; Script generated by FFmpeg/Lavc%s\n" | |
| 101 | + "ScriptType: v4.00+\n" | |
| 102 | + "PlayResX: %d\n" | |
| 103 | + "PlayResY: %d\n" | |
| 104 | + "\n" | |
| 105 | + "[V4+ Styles]\n" | |
| 106 | 106 | |
| 107 | 107 | /* ASSv4 header */ |
| 108 | 108 | "Format: Name, " |
| @@ -113,7 +113,7 @@ static int libaribb24_generate_ass_header(AVCodecContext *avctx) · 4 unmodified lines | ||
| 113 | 113 | "Spacing, Angle, " |
| 114 | 114 | "BorderStyle, Outline, Shadow, " |
| 115 | 115 | "Alignment, MarginL, MarginR, MarginV, " |
| 116 | − "Encoding\r\n" | |
| 116 | + "Encoding\n" | |
| 117 | 117 | |
| 118 | 118 | "Style: " |
| 119 | 119 | "Default," /* Name */ |
| @@ -124,11 +124,11 @@ static int libaribb24_generate_ass_header(AVCodecContext *avctx) · 4 unmodified lines | ||
| 124 | 124 | "0,0," /* Spacing, Angle */ |
| 125 | 125 | "%d,1,0," /* BorderStyle, Outline, Shadow */ |
| 126 | 126 | "%d,10,10,10," /* Alignment, Margin[LRV] */ |
| 127 | − "0\r\n" /* Encoding */ | |
| 127 | + "0\n" /* Encoding */ | |
| 128 | 128 | |
| 129 | − "\r\n" | |
| 130 | − "[Events]\r\n" | |
| 131 | − "Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text\r\n", | |
| 129 | + "\n" | |
| 130 | + "[Events]\n" | |
| 131 | + "Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text\n", | |
| 132 | 132 | !(avctx->flags & AV_CODEC_FLAG_BITEXACT) ? AV_STRINGIFY(LIBAVCODEC_VERSION) : "", |
| 133 | 133 | plane_width, plane_height, |
| 134 | 134 | ASS_DEFAULT_FONT, font_size, ASS_DEFAULT_COLOR, |