Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a43deea8
Commit
a43deea8
authored
Jan 10, 2016
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/ccaption_dec: fix ASS tags
parent
e273dade
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
ccaption_dec.c
libavcodec/ccaption_dec.c
+6
-6
sub-cc
tests/ref/fate/sub-cc
+2
-2
No files found.
libavcodec/ccaption_dec.c
View file @
a43deea8
...
...
@@ -307,24 +307,24 @@ static int capture_screen(CCaptionSubContext *ctx)
if
(
prev_font
!=
font
[
j
])
{
switch
(
prev_font
)
{
case
CCFONT_ITALICS
:
e_tag
=
"{
/
i0}"
;
e_tag
=
"{
\\
i0}"
;
break
;
case
CCFONT_UNDERLINED
:
e_tag
=
"{
/
u0}"
;
e_tag
=
"{
\\
u0}"
;
break
;
case
CCFONT_UNDERLINED_ITALICS
:
e_tag
=
"{
/u0}{/
i0}"
;
e_tag
=
"{
\\
u0}{
\\
i0}"
;
break
;
}
switch
(
font
[
j
])
{
case
CCFONT_ITALICS
:
s_tag
=
"{
/
i1}"
;
s_tag
=
"{
\\
i1}"
;
break
;
case
CCFONT_UNDERLINED
:
s_tag
=
"{
/
u1}"
;
s_tag
=
"{
\\
u1}"
;
break
;
case
CCFONT_UNDERLINED_ITALICS
:
s_tag
=
"{
/u1}{/
i1}"
;
s_tag
=
"{
\\
u1}{
\\
i1}"
;
break
;
}
}
...
...
tests/ref/fate/sub-cc
View file @
a43deea8
...
...
@@ -10,5 +10,5 @@ Style: Default,Arial,16,&Hffffff,&Hffffff,&H0,&H0,0,0,0,0,100,100,0,0,1,1,0,2,10
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:12.36,0:00:40.83,Default,,0,0,0,,({
/i1} inaudible radio chatter{/
i0} )
Dialogue: 0,0:00:40.83,0:00:59.07,Default,,0,0,0,,({
/i1} inaudible radio chatter{/
i0} )\N>> Safety remains our number one
Dialogue: 0,0:00:12.36,0:00:40.83,Default,,0,0,0,,({
\i1} inaudible radio chatter{\
i0} )
Dialogue: 0,0:00:40.83,0:00:59.07,Default,,0,0,0,,({
\i1} inaudible radio chatter{\
i0} )\N>> Safety remains our number one
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment