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
d701934b
Commit
d701934b
authored
Jul 31, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check url_fseek return value
Originally committed as revision 14490 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
aaec4e03
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
raw.c
libavformat/raw.c
+3
-2
No files found.
libavformat/raw.c
View file @
d701934b
...
@@ -221,7 +221,7 @@ int pcm_read_seek(AVFormatContext *s,
...
@@ -221,7 +221,7 @@ int pcm_read_seek(AVFormatContext *s,
int
stream_index
,
int64_t
timestamp
,
int
flags
)
int
stream_index
,
int64_t
timestamp
,
int
flags
)
{
{
AVStream
*
st
;
AVStream
*
st
;
int
block_align
,
byte_rate
;
int
block_align
,
byte_rate
,
ret
;
int64_t
pos
;
int64_t
pos
;
st
=
s
->
streams
[
0
];
st
=
s
->
streams
[
0
];
...
@@ -243,7 +243,8 @@ int pcm_read_seek(AVFormatContext *s,
...
@@ -243,7 +243,8 @@ int pcm_read_seek(AVFormatContext *s,
/* recompute exact position */
/* recompute exact position */
st
->
cur_dts
=
av_rescale
(
pos
,
st
->
time_base
.
den
,
byte_rate
*
(
int64_t
)
st
->
time_base
.
num
);
st
->
cur_dts
=
av_rescale
(
pos
,
st
->
time_base
.
den
,
byte_rate
*
(
int64_t
)
st
->
time_base
.
num
);
url_fseek
(
s
->
pb
,
pos
+
s
->
data_offset
,
SEEK_SET
);
if
((
ret
=
url_fseek
(
s
->
pb
,
pos
+
s
->
data_offset
,
SEEK_SET
))
<
0
)
return
ret
;
return
0
;
return
0
;
}
}
...
...
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