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
c23c96b6
Commit
c23c96b6
authored
May 19, 2014
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: add av_stream_get_side_data
parent
afe17626
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
2 deletions
+32
-2
APIchanges
doc/APIchanges
+4
-0
avformat.h
libavformat/avformat.h
+11
-0
utils.c
libavformat/utils.c
+15
-0
version.h
libavformat/version.h
+2
-2
No files found.
doc/APIchanges
View file @
c23c96b6
...
...
@@ -13,6 +13,10 @@ libavutil: 2013-12-xx
API changes, most recent first:
2014-05-19 - xxxxxxx - lavf 55.18.0 - avformat.h
Add av_stream_get_side_data() to access stream-level side data
in the same way as av_packet_get_side_data().
2014-05-xx - xxxxxxx - lavu 53.15.0 - frame.h, display.h
Add AV_FRAME_DATA_DISPLAYMATRIX for exporting frame-level
spatial rendering on video frames for proper display.
...
...
libavformat/avformat.h
View file @
c23c96b6
...
...
@@ -1326,6 +1326,17 @@ const AVClass *avformat_get_class(void);
*/
AVStream
*
avformat_new_stream
(
AVFormatContext
*
s
,
AVCodec
*
c
);
/**
* Get side information from stream.
*
* @param stream stream
* @param type desired side information type
* @param size pointer for side information size to store (optional)
* @return pointer to data if present or NULL otherwise
*/
uint8_t
*
av_stream_get_side_data
(
AVStream
*
stream
,
enum
AVPacketSideDataType
type
,
int
*
size
);
AVProgram
*
av_new_program
(
AVFormatContext
*
s
,
int
id
);
/**
...
...
libavformat/utils.c
View file @
c23c96b6
...
...
@@ -3474,3 +3474,18 @@ int ff_generate_avci_extradata(AVStream *st)
return
0
;
}
uint8_t
*
av_stream_get_side_data
(
AVStream
*
st
,
enum
AVPacketSideDataType
type
,
int
*
size
)
{
int
i
;
for
(
i
=
0
;
i
<
st
->
nb_side_data
;
i
++
)
{
if
(
st
->
side_data
[
i
].
type
==
type
)
{
if
(
size
)
*
size
=
st
->
side_data
[
i
].
size
;
return
st
->
side_data
[
i
].
data
;
}
}
return
NULL
;
}
libavformat/version.h
View file @
c23c96b6
...
...
@@ -30,8 +30,8 @@
#include "libavutil/version.h"
#define LIBAVFORMAT_VERSION_MAJOR 55
#define LIBAVFORMAT_VERSION_MINOR 1
7
#define LIBAVFORMAT_VERSION_MICRO
1
#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