summaryrefslogtreecommitdiff
path: root/libavcodec/ass.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-06-15 19:02:41 +0200
committerClément Bœsch <ubitux@gmail.com>2012-06-29 20:20:02 +0200
commit0e7782c08ec77739edb0b98ba5d896b45e98235f (patch)
tree9dc2bd3cbb892653dec46db3be97201a4f61408d /libavcodec/ass.c
parenta19e9f2d5ca2bcc0f830dcff0866b8bf0300d412 (diff)
lavc/ass: honor Default style.
The "Default" style written in the header is ignored unless you explicit it in the Dialogue events (it was valid, just ignored). This requires an update of the SubRip test since the ASS output obviously changes.
Diffstat (limited to 'libavcodec/ass.c')
-rw-r--r--libavcodec/ass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ass.c b/libavcodec/ass.c
index 51e37ac49d..6f1719bc5e 100644
--- a/libavcodec/ass.c
+++ b/libavcodec/ass.c
@@ -38,7 +38,7 @@ int ff_ass_subtitle_header(AVCodecContext *avctx,
"Style: Default,%s,%d,&H%x,&H%x,&H%x,&H%x,%d,%d,%d,1,1,0,%d,10,10,10,0,0\r\n"
"\r\n"
"[Events]\r\n"
- "Format: Layer, Start, End, Text\r\n",
+ "Format: Layer, Start, End, Style, Text\r\n",
font, font_size, color, color, back_color, back_color,
-bold, -italic, -underline, alignment);
@@ -82,7 +82,7 @@ int ff_ass_add_rect(AVSubtitle *sub, const char *dialog,
snprintf(s_end, sizeof(s_end), "9:59:59.99");
else
ts_to_string(s_end, sizeof(s_end), ts_start + duration);
- len = snprintf(header, sizeof(header), "Dialogue: 0,%s,%s,",
+ len = snprintf(header, sizeof(header), "Dialogue: 0,%s,%s,Default,",
s_start, s_end);
}