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
d62cb297
Commit
d62cb297
authored
Dec 22, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/vividas: check if viv->sb_pb is not NULL
parent
e9909fe1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vividas.c
libavformat/vividas.c
+4
-0
No files found.
libavformat/vividas.c
View file @
d62cb297
...
@@ -582,6 +582,8 @@ static int viv_read_packet(AVFormatContext *s,
...
@@ -582,6 +582,8 @@ static int viv_read_packet(AVFormatContext *s,
int64_t
off
;
int64_t
off
;
int
ret
;
int
ret
;
if
(
!
viv
->
sb_pb
)
return
AVERROR
(
EIO
);
if
(
avio_feof
(
viv
->
sb_pb
))
if
(
avio_feof
(
viv
->
sb_pb
))
return
AVERROR_EOF
;
return
AVERROR_EOF
;
...
@@ -615,6 +617,8 @@ static int viv_read_packet(AVFormatContext *s,
...
@@ -615,6 +617,8 @@ static int viv_read_packet(AVFormatContext *s,
}
}
pb
=
viv
->
sb_pb
;
pb
=
viv
->
sb_pb
;
if
(
!
pb
)
return
AVERROR
(
EIO
);
off
=
avio_tell
(
pb
);
off
=
avio_tell
(
pb
);
off
+=
viv
->
sb_entries
[
viv
->
current_sb_entry
].
size
;
off
+=
viv
->
sb_entries
[
viv
->
current_sb_entry
].
size
;
...
...
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