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
ec39c227
Commit
ec39c227
authored
Jun 01, 2020
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/buffer: use the default allocator if none is provided to av_buffer_pool_init2()
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
7f817853
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
APIchanges
doc/APIchanges
+3
-0
buffer.c
libavutil/buffer.c
+3
-0
version.h
libavutil/version.h
+1
-1
No files found.
doc/APIchanges
View file @
ec39c227
...
...
@@ -15,6 +15,9 @@ libavutil: 2017-10-21
API changes, most recent first:
2020-06-xx - xxxxxxxxxx - lavu 56.50.100 - buffer.h
Passing NULL as alloc argument to av_buffer_pool_init2() is now allowed.
2020-xx-xx - xxxxxxxxxx - lavc 58.88.100 - avcodec.h codec.h
Move AVCodec-related public API to new header codec.h.
...
...
libavutil/buffer.c
View file @
ec39c227
...
...
@@ -229,6 +229,7 @@ AVBufferPool *av_buffer_pool_init2(int size, void *opaque,
pool
->
size
=
size
;
pool
->
opaque
=
opaque
;
pool
->
alloc2
=
alloc
;
pool
->
alloc
=
av_buffer_alloc
;
// fallback
pool
->
pool_free
=
pool_free
;
atomic_init
(
&
pool
->
refcount
,
1
);
...
...
@@ -310,6 +311,8 @@ static AVBufferRef *pool_alloc_buffer(AVBufferPool *pool)
BufferPoolEntry
*
buf
;
AVBufferRef
*
ret
;
av_assert0
(
pool
->
alloc
||
pool
->
alloc2
);
ret
=
pool
->
alloc2
?
pool
->
alloc2
(
pool
->
opaque
,
pool
->
size
)
:
pool
->
alloc
(
pool
->
size
);
if
(
!
ret
)
...
...
libavutil/version.h
View file @
ec39c227
...
...
@@ -79,7 +79,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 56
#define LIBAVUTIL_VERSION_MINOR
49
#define LIBAVUTIL_VERSION_MINOR
50
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
...
...
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