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
983e3fbc
Commit
983e3fbc
authored
May 05, 2017
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/samidec: Check ff_htmlmarkup_to_ass() return code
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
f4ae3cce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
samidec.c
libavcodec/samidec.c
+6
-2
No files found.
libavcodec/samidec.c
View file @
983e3fbc
...
...
@@ -113,10 +113,14 @@ static int sami_paragraph_to_ass(AVCodecContext *avctx, const char *src)
av_bprint_clear
(
&
sami
->
full
);
if
(
sami
->
source
.
len
)
{
ff_htmlmarkup_to_ass
(
avctx
,
dst_source
,
sami
->
source
.
str
);
ret
=
ff_htmlmarkup_to_ass
(
avctx
,
dst_source
,
sami
->
source
.
str
);
if
(
ret
<
0
)
goto
end
;
av_bprintf
(
&
sami
->
full
,
"{
\\
i1}%s{
\\
i0}
\\
N"
,
sami
->
encoded_source
.
str
);
}
ff_htmlmarkup_to_ass
(
avctx
,
dst_content
,
sami
->
content
.
str
);
ret
=
ff_htmlmarkup_to_ass
(
avctx
,
dst_content
,
sami
->
content
.
str
);
if
(
ret
<
0
)
goto
end
;
av_bprintf
(
&
sami
->
full
,
"%s"
,
sami
->
encoded_content
.
str
);
end:
...
...
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