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
ca2e3e47
Commit
ca2e3e47
authored
Jan 31, 2015
by
Zhang Rui
Committed by
Michael Niedermayer
Jan 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/cache: pass options to the underlying protocol via the url_open2
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
958836f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cache.c
libavformat/cache.c
+3
-3
No files found.
libavformat/cache.c
View file @
ca2e3e47
...
...
@@ -70,7 +70,7 @@ static int cmp(void *key, const void *node)
return
(
*
(
int64_t
*
)
key
)
-
((
const
CacheEntry
*
)
node
)
->
logical_pos
;
}
static
int
cache_open
(
URLContext
*
h
,
const
char
*
arg
,
int
flags
)
static
int
cache_open
(
URLContext
*
h
,
const
char
*
arg
,
int
flags
,
AVDictionary
**
options
)
{
char
*
buffername
;
Context
*
c
=
h
->
priv_data
;
...
...
@@ -86,7 +86,7 @@ static int cache_open(URLContext *h, const char *arg, int flags)
unlink
(
buffername
);
av_freep
(
&
buffername
);
return
ffurl_open
(
&
c
->
inner
,
arg
,
flags
,
&
h
->
interrupt_callback
,
NULL
);
return
ffurl_open
(
&
c
->
inner
,
arg
,
flags
,
&
h
->
interrupt_callback
,
options
);
}
static
int
add_entry
(
URLContext
*
h
,
const
unsigned
char
*
buf
,
int
size
)
...
...
@@ -313,7 +313,7 @@ static const AVClass cache_context_class = {
URLProtocol
ff_cache_protocol
=
{
.
name
=
"cache"
,
.
url_open
=
cache_open
,
.
url_open
2
=
cache_open
,
.
url_read
=
cache_read
,
.
url_seek
=
cache_seek
,
.
url_close
=
cache_close
,
...
...
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