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
7f4ec436
Commit
7f4ec436
authored
Nov 05, 2015
by
John Stebbins
Committed by
Anton Khirnov
Nov 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: expose av_stream_new_side_data helper
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
21ab6fd0
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
12 deletions
+19
-12
APIchanges
doc/APIchanges
+4
-0
avformat.h
libavformat/avformat.h
+10
-0
internal.h
libavformat/internal.h
+0
-7
mov.c
libavformat/mov.c
+2
-2
replaygain.c
libavformat/replaygain.c
+1
-1
utils.c
libavformat/utils.c
+1
-1
version.h
libavformat/version.h
+1
-1
No files found.
doc/APIchanges
View file @
7f4ec436
...
...
@@ -12,6 +12,10 @@ libavutil: 2015-08-28
API changes, most recent first:
2015-11-xx - xxxxxxx - lavf 57.1.0 - avformat.h
Add av_stream_new_side_data().
2015-11-xx - xxxxxxx - lavu 55.3.0 - xtea.h
Add av_xtea_le_init and av_xtea_le_crypt
...
...
libavformat/avformat.h
View file @
7f4ec436
...
...
@@ -1343,6 +1343,16 @@ const AVClass *avformat_get_class(void);
*/
AVStream
*
avformat_new_stream
(
AVFormatContext
*
s
,
const
AVCodec
*
c
);
/**
* Allocate new information from stream.
*
* @param stream stream
* @param type desired side information type
* @param size side information size
* @return pointer to fresh allocated data or NULL otherwise
*/
uint8_t
*
av_stream_new_side_data
(
AVStream
*
stream
,
enum
AVPacketSideDataType
type
,
int
size
);
/**
* Get side information from stream.
*
...
...
libavformat/internal.h
View file @
7f4ec436
...
...
@@ -419,11 +419,4 @@ static inline int ff_rename(const char *oldpath, const char *newpath)
return
0
;
}
/**
* Add new side data to a stream. If a side data of this type already exists, it
* is replaced.
*/
uint8_t
*
ff_stream_new_side_data
(
AVStream
*
st
,
enum
AVPacketSideDataType
type
,
int
size
);
#endif
/* AVFORMAT_INTERNAL_H */
libavformat/mov.c
View file @
7f4ec436
...
...
@@ -684,7 +684,7 @@ static int mov_read_dac3(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return
0
;
st
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
];
ast
=
(
enum
AVAudioServiceType
*
)
ff
_stream_new_side_data
(
st
,
AV_PKT_DATA_AUDIO_SERVICE_TYPE
,
ast
=
(
enum
AVAudioServiceType
*
)
av
_stream_new_side_data
(
st
,
AV_PKT_DATA_AUDIO_SERVICE_TYPE
,
sizeof
(
*
ast
));
if
(
!
ast
)
return
AVERROR
(
ENOMEM
);
...
...
@@ -716,7 +716,7 @@ static int mov_read_dec3(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return
0
;
st
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
];
ast
=
(
enum
AVAudioServiceType
*
)
ff
_stream_new_side_data
(
st
,
AV_PKT_DATA_AUDIO_SERVICE_TYPE
,
ast
=
(
enum
AVAudioServiceType
*
)
av
_stream_new_side_data
(
st
,
AV_PKT_DATA_AUDIO_SERVICE_TYPE
,
sizeof
(
*
ast
));
if
(
!
ast
)
return
AVERROR
(
ENOMEM
);
...
...
libavformat/replaygain.c
View file @
7f4ec436
...
...
@@ -75,7 +75,7 @@ int ff_replaygain_export_raw(AVStream *st, int32_t tg, uint32_t tp,
if
(
tg
==
INT32_MIN
&&
ag
==
INT32_MIN
)
return
0
;
replaygain
=
(
AVReplayGain
*
)
ff
_stream_new_side_data
(
st
,
AV_PKT_DATA_REPLAYGAIN
,
replaygain
=
(
AVReplayGain
*
)
av
_stream_new_side_data
(
st
,
AV_PKT_DATA_REPLAYGAIN
,
sizeof
(
*
replaygain
));
if
(
!
replaygain
)
return
AVERROR
(
ENOMEM
);
...
...
libavformat/utils.c
View file @
7f4ec436
...
...
@@ -3140,7 +3140,7 @@ uint8_t *av_stream_get_side_data(AVStream *st, enum AVPacketSideDataType type,
return
NULL
;
}
uint8_t
*
ff
_stream_new_side_data
(
AVStream
*
st
,
enum
AVPacketSideDataType
type
,
uint8_t
*
av
_stream_new_side_data
(
AVStream
*
st
,
enum
AVPacketSideDataType
type
,
int
size
)
{
AVPacketSideData
*
sd
,
*
tmp
;
...
...
libavformat/version.h
View file @
7f4ec436
...
...
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFORMAT_VERSION_MAJOR 57
#define LIBAVFORMAT_VERSION_MINOR
0
#define LIBAVFORMAT_VERSION_MINOR
1
#define LIBAVFORMAT_VERSION_MICRO 0
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_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