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
b522000e
Commit
b522000e
authored
Oct 09, 2012
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: introduce avio_closep
parent
82569b01
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
2 deletions
+27
-2
APIchanges
doc/APIchanges
+3
-0
avio.h
libavformat/avio.h
+15
-0
aviobuf.c
libavformat/aviobuf.c
+7
-0
version.h
libavformat/version.h
+2
-2
No files found.
doc/APIchanges
View file @
b522000e
...
...
@@ -13,6 +13,9 @@ libavutil: 2011-04-18
API changes, most recent first:
2012-10-xx - xxxxxxx - lavf 54.18.0 - avio.h
Add avio_closep to complement avio_close.
2012-10-xx - xxxxxxx - lavu 51.42.0 - pixfmt.h
Rename PixelFormat to AVPixelFormat and all PIX_FMT_* to AV_PIX_FMT_*.
To provide backwards compatibility, PixelFormat is now #defined as
...
...
libavformat/avio.h
View file @
b522000e
...
...
@@ -353,9 +353,24 @@ int avio_open2(AVIOContext **s, const char *url, int flags,
* resource.
*
* @return 0 on success, an AVERROR < 0 on error.
* @see avio_closep
*/
int
avio_close
(
AVIOContext
*
s
);
/**
* Close the resource accessed by the AVIOContext *s, free it
* and set the pointer pointing to it to NULL.
* This function can only be used if s was opened by avio_open().
*
* The internal buffer is automatically flushed before closing the
* resource.
*
* @return 0 on success, an AVERROR < 0 on error.
* @see avio_close
*/
int
avio_closep
(
AVIOContext
**
s
);
/**
* Open a write only memory stream.
*
...
...
libavformat/aviobuf.c
View file @
b522000e
...
...
@@ -768,6 +768,13 @@ int avio_close(AVIOContext *s)
return
ffurl_close
(
h
);
}
int
avio_closep
(
AVIOContext
**
s
)
{
int
ret
=
avio_close
(
*
s
);
*
s
=
NULL
;
return
ret
;
}
int
avio_printf
(
AVIOContext
*
s
,
const
char
*
fmt
,
...)
{
va_list
ap
;
...
...
libavformat/version.h
View file @
b522000e
...
...
@@ -30,8 +30,8 @@
#include "libavutil/avutil.h"
#define LIBAVFORMAT_VERSION_MAJOR 54
#define LIBAVFORMAT_VERSION_MINOR 1
7
#define LIBAVFORMAT_VERSION_MICRO
3
#define LIBAVFORMAT_VERSION_MINOR 1
8
#define LIBAVFORMAT_VERSION_MICRO
0
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \
...
...
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