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
84adab33
Commit
84adab33
authored
Jul 22, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: add stream-global packet side data
This is similar to what is done for AVStream.
parent
31c51f74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
APIchanges
doc/APIchanges
+2
-1
avcodec.h
libavcodec/avcodec.h
+10
-0
utils.c
libavcodec/utils.c
+8
-1
No files found.
doc/APIchanges
View file @
84adab33
...
...
@@ -14,7 +14,8 @@ libavutil: 2015-08-28
API changes, most recent first:
2015-xx-xx - xxxxxxx - lavc 57.11.0 - avcodec.h
Add av_packet_add_side_data().
xxxxxxx - Add av_packet_add_side_data().
xxxxxxx - Add AVCodecContext.coded_side_data.
2015-xx-xx - xxxxxxx - lavc 57.9.1 - avcodec.h
Deprecate rtp_callback without replacement, i.e. it won't be possible to
...
...
libavcodec/avcodec.h
View file @
84adab33
...
...
@@ -2925,6 +2925,16 @@ typedef struct AVCodecContext {
* - decoding: Set by libavcodec before calling get_format()
*/
enum
AVPixelFormat
sw_pix_fmt
;
/**
* Additional data associated with the entire coded stream.
*
* - decoding: unused
* - encoding: may be set by libavcodec after avcodec_open2().
*/
AVPacketSideData
*
coded_side_data
;
int
nb_coded_side_data
;
}
AVCodecContext
;
/**
...
...
libavcodec/utils.c
View file @
84adab33
...
...
@@ -1603,9 +1603,11 @@ void avsubtitle_free(AVSubtitle *sub)
av_cold
int
avcodec_close
(
AVCodecContext
*
avctx
)
{
int
i
;
if
(
avcodec_is_open
(
avctx
))
{
FramePool
*
pool
=
avctx
->
internal
->
pool
;
int
i
;
if
(
HAVE_THREADS
&&
avctx
->
internal
->
thread_ctx
)
ff_thread_free
(
avctx
);
if
(
avctx
->
codec
&&
avctx
->
codec
->
close
)
...
...
@@ -1622,6 +1624,11 @@ av_cold int avcodec_close(AVCodecContext *avctx)
av_freep
(
&
avctx
->
internal
);
}
for
(
i
=
0
;
i
<
avctx
->
nb_coded_side_data
;
i
++
)
av_freep
(
&
avctx
->
coded_side_data
[
i
].
data
);
av_freep
(
&
avctx
->
coded_side_data
);
avctx
->
nb_coded_side_data
=
0
;
if
(
avctx
->
priv_data
&&
avctx
->
codec
&&
avctx
->
codec
->
priv_class
)
av_opt_free
(
avctx
->
priv_data
);
av_opt_free
(
avctx
);
...
...
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