Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
1df00ac8
Commit
1df00ac8
authored
Sep 14, 2011
by
Joakim Plate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dv] Check return value of avio_seek and avoid modifying state if it fails
parent
75f41806
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
dv.c
libavformat/dv.c
+4
-3
No files found.
libavformat/dv.c
View file @
1df00ac8
...
...
@@ -475,10 +475,11 @@ static int dv_read_seek(AVFormatContext *s, int stream_index,
DVDemuxContext
*
c
=
r
->
dv_demux
;
int64_t
offset
=
dv_frame_offset
(
s
,
c
,
timestamp
,
flags
);
dv_offset_reset
(
c
,
offset
/
c
->
sys
->
frame_size
);
if
(
avio_seek
(
s
->
pb
,
offset
,
SEEK_SET
)
<
0
)
return
-
1
;
offset
=
avio_seek
(
s
->
pb
,
offset
,
SEEK_SET
);
return
(
offset
<
0
)
?
offset
:
0
;
dv_offset_reset
(
c
,
offset
/
c
->
sys
->
frame_size
);
return
0
;
}
static
int
dv_read_close
(
AVFormatContext
*
s
)
...
...
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