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
e232c252
Commit
e232c252
authored
Jan 05, 2009
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a typedef for AVMetadata
Originally committed as revision 16446 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
272081b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
avformat.h
libavformat/avformat.h
+7
-7
metadata.c
libavformat/metadata.c
+3
-3
No files found.
libavformat/avformat.h
View file @
e232c252
...
...
@@ -75,7 +75,7 @@ typedef struct {
char
*
value
;
}
AVMetadataTag
;
struct
AVMetadata
;
typedef
struct
AVMetadata
AVMetadata
;
/**
* gets a metadata element with matching key.
...
...
@@ -84,14 +84,14 @@ struct AVMetadata;
* @return found tag or NULL, changing key or value leads to undefined behavior.
*/
AVMetadataTag
*
av_metadata_get
(
struct
AVMetadata
*
m
,
const
char
*
key
,
const
AVMetadataTag
*
prev
,
int
flags
);
av_metadata_get
(
AVMetadata
*
m
,
const
char
*
key
,
const
AVMetadataTag
*
prev
,
int
flags
);
/**
* sets the given tag in m, overwriting an existing tag.
* @param tag tag to add to m, key and value will be av_strduped.
* @return >= 0 if success otherwise error code that is <0.
*/
int
av_metadata_set
(
struct
AVMetadata
**
m
,
AVMetadataTag
tag
);
int
av_metadata_set
(
AVMetadata
**
m
,
AVMetadataTag
tag
);
/* packet functions */
...
...
@@ -481,7 +481,7 @@ typedef struct AVStream {
*/
AVRational
sample_aspect_ratio
;
struct
AVMetadata
*
metadata
;
AVMetadata
*
metadata
;
}
AVStream
;
#define AV_PROGRAM_RUNNING 1
...
...
@@ -500,7 +500,7 @@ typedef struct AVProgram {
enum
AVDiscard
discard
;
///< selects which program to discard and which to feed to the caller
unsigned
int
*
stream_index
;
unsigned
int
nb_stream_indexes
;
struct
AVMetadata
*
metadata
;
AVMetadata
*
metadata
;
}
AVProgram
;
#define AVFMTCTX_NOHEADER 0x0001
/**< signal that no header is present
...
...
@@ -511,7 +511,7 @@ typedef struct AVChapter {
AVRational
time_base
;
///< time base in which the start/end timestamps are specified
int64_t
start
,
end
;
///< chapter start/end time in time_base units
char
*
title
;
///< chapter title
struct
AVMetadata
*
metadata
;
AVMetadata
*
metadata
;
}
AVChapter
;
#define MAX_STREAMS 20
...
...
@@ -661,7 +661,7 @@ typedef struct AVFormatContext {
struct
AVPacketList
*
packet_buffer_end
;
struct
AVMetadata
*
metadata
;
AVMetadata
*
metadata
;
}
AVFormatContext
;
typedef
struct
AVPacketList
{
...
...
libavformat/metadata.c
View file @
e232c252
...
...
@@ -21,7 +21,7 @@
#include "metadata.h"
AVMetadataTag
*
av_metadata_get
(
struct
AVMetadata
*
m
,
const
char
*
key
,
const
AVMetadataTag
*
prev
,
int
flags
)
av_metadata_get
(
AVMetadata
*
m
,
const
char
*
key
,
const
AVMetadataTag
*
prev
,
int
flags
)
{
unsigned
int
i
,
j
;
...
...
@@ -44,9 +44,9 @@ av_metadata_get(struct AVMetadata *m, const char *key, const AVMetadataTag *prev
return
NULL
;
}
int
av_metadata_set
(
struct
AVMetadata
**
pm
,
AVMetadataTag
elem
)
int
av_metadata_set
(
AVMetadata
**
pm
,
AVMetadataTag
elem
)
{
struct
AVMetadata
*
m
=
*
pm
;
AVMetadata
*
m
=
*
pm
;
AVMetadataTag
*
tag
=
av_metadata_get
(
m
,
elem
.
key
,
NULL
,
0
);
if
(
!
m
)
...
...
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