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
c886dd2f
Commit
c886dd2f
authored
May 21, 2015
by
Zhang Rui
Committed by
Michael Niedermayer
May 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mov: check result of avio_seek
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
18833daf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
mov.c
libavformat/mov.c
+4
-1
No files found.
libavformat/mov.c
View file @
c886dd2f
...
...
@@ -4240,7 +4240,10 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
mov
->
found_mdat
=
0
;
if
(
!
mov
->
next_root_atom
)
return
AVERROR_EOF
;
avio_seek
(
s
->
pb
,
mov
->
next_root_atom
,
SEEK_SET
);
if
(
avio_seek
(
s
->
pb
,
mov
->
next_root_atom
,
SEEK_SET
)
!=
mov
->
next_root_atom
)
{
av_log
(
mov
->
fc
,
AV_LOG_ERROR
,
"next root atom offset 0x%"
PRIx64
": partial file
\n
"
,
mov
->
next_root_atom
);
return
AVERROR_INVALIDDATA
;
}
mov
->
next_root_atom
=
0
;
if
(
mov_read_default
(
mov
,
s
->
pb
,
(
MOVAtom
){
AV_RL32
(
"root"
),
INT64_MAX
})
<
0
||
avio_feof
(
s
->
pb
))
...
...
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