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
8d51d10e
Commit
8d51d10e
authored
Nov 29, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/samidec: properly raise errors from sami_paragraph_to_ass()
parent
61bbc537
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
samidec.c
libavcodec/samidec.c
+5
-2
No files found.
libavcodec/samidec.c
View file @
8d51d10e
...
...
@@ -138,9 +138,12 @@ static int sami_decode_frame(AVCodecContext *avctx,
const
char
*
ptr
=
avpkt
->
data
;
SAMIContext
*
sami
=
avctx
->
priv_data
;
if
(
ptr
&&
avpkt
->
size
>
0
&&
!
sami_paragraph_to_ass
(
avctx
,
ptr
))
{
if
(
ptr
&&
avpkt
->
size
>
0
)
{
int
ret
=
sami_paragraph_to_ass
(
avctx
,
ptr
);
if
(
ret
<
0
)
return
ret
;
// TODO: pass escaped sami->encoded_source.str as source
int
ret
=
ff_ass_add_rect
(
sub
,
sami
->
full
.
str
,
sami
->
readorder
++
,
0
,
NULL
,
NULL
);
ret
=
ff_ass_add_rect
(
sub
,
sami
->
full
.
str
,
sami
->
readorder
++
,
0
,
NULL
,
NULL
);
if
(
ret
<
0
)
return
ret
;
}
...
...
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