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
62f63b24
Commit
62f63b24
authored
Nov 29, 2017
by
Jeyapal, Karthick
Committed by
Steven Liu
Nov 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavformat/avio: Utility function to return URLContext
parent
c5fd57f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
avio_internal.h
libavformat/avio_internal.h
+8
-0
aviobuf.c
libavformat/aviobuf.c
+13
-0
No files found.
libavformat/avio_internal.h
View file @
62f63b24
...
...
@@ -132,6 +132,14 @@ int ffio_open_dyn_packet_buf(AVIOContext **s, int max_packet_size);
*/
int
ffio_fdopen
(
AVIOContext
**
s
,
URLContext
*
h
);
/**
* Return the URLContext associated with the AVIOContext
*
* @param s IO context
* @return pointer to URLContext or NULL.
*/
URLContext
*
ffio_geturlcontext
(
AVIOContext
*
s
);
/**
* Open a write-only fake memory stream. The written data is not stored
* anywhere - this is only used for measuring the amount of data
...
...
libavformat/aviobuf.c
View file @
62f63b24
...
...
@@ -980,6 +980,19 @@ fail:
return
AVERROR
(
ENOMEM
);
}
URLContext
*
ffio_geturlcontext
(
AVIOContext
*
s
)
{
AVIOInternal
*
internal
;
if
(
!
s
)
return
NULL
;
internal
=
s
->
opaque
;
if
(
internal
&&
s
->
read_packet
==
io_read_packet
)
return
internal
->
h
;
else
return
NULL
;
}
int
ffio_ensure_seekback
(
AVIOContext
*
s
,
int64_t
buf_size
)
{
uint8_t
*
buffer
;
...
...
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