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
608bda92
Commit
608bda92
authored
Jun 15, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/{srt,microdvd}: correctly raise error on avformat_new_stream() error.
parent
9b6f2c74
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
microdvddec.c
libavformat/microdvddec.c
+1
-1
srtdec.c
libavformat/srtdec.c
+1
-1
No files found.
libavformat/microdvddec.c
View file @
608bda92
...
...
@@ -62,7 +62,7 @@ static int microdvd_read_header(AVFormatContext *s)
char
c
;
if
(
!
st
)
return
-
1
;
return
AVERROR
(
ENOMEM
)
;
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
microdvd
->
lines
);
i
++
)
{
microdvd
->
pos
[
i
]
=
avio_tell
(
s
->
pb
);
ff_get_line
(
s
->
pb
,
microdvd
->
lines
[
i
],
sizeof
(
microdvd
->
lines
[
i
]));
...
...
libavformat/srtdec.c
View file @
608bda92
...
...
@@ -44,7 +44,7 @@ static int srt_read_header(AVFormatContext *s)
{
AVStream
*
st
=
avformat_new_stream
(
s
,
NULL
);
if
(
!
st
)
return
-
1
;
return
AVERROR
(
ENOMEM
)
;
avpriv_set_pts_info
(
st
,
64
,
1
,
1000
);
st
->
codec
->
codec_type
=
AVMEDIA_TYPE_SUBTITLE
;
st
->
codec
->
codec_id
=
CODEC_ID_SRT
;
...
...
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