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
8475ec19
Commit
8475ec19
authored
Oct 31, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmsh: mmsh_read_seek()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
86a4e55e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
mmsh.c
libavformat/mmsh.c
+20
-0
No files found.
libavformat/mmsh.c
View file @
8475ec19
...
...
@@ -366,6 +366,25 @@ static int mmsh_read(URLContext *h, uint8_t *buf, int size)
return
res
;
}
static
int64_t
mmsh_read_seek
(
URLContext
*
h
,
int
stream_index
,
int64_t
timestamp
,
int
flags
)
{
MMSHContext
*
mmsh
=
h
->
priv_data
;
MMSContext
*
mms
=
&
mmsh
->
mms
;
int
ret
;
ret
=
mmsh_open_internal
(
h
,
mmsh
->
location
,
0
,
timestamp
,
0
);
if
(
ret
>=
0
){
if
(
mms
->
mms_hd
)
ffurl_close
(
mms
->
mms_hd
);
av_freep
(
&
mms
->
streams
);
av_freep
(
&
mms
->
asf_header
);
av_free
(
mmsh
);
}
else
h
->
priv_data
=
mmsh
;
return
ret
;
}
URLProtocol
ff_mmsh_protocol
=
{
.
name
=
"mmsh"
,
.
url_open
=
mmsh_open
,
...
...
@@ -373,4 +392,5 @@ URLProtocol ff_mmsh_protocol = {
.
url_write
=
NULL
,
.
url_seek
=
NULL
,
.
url_close
=
mmsh_close
,
.
url_read_seek
=
mmsh_read_seek
,
};
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