Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
451d566f
Commit
451d566f
authored
14 years ago
by
Anton Khirnov
Browse files
Options
Downloads
Patches
Plain Diff
lavf: postpone removal of public metadata conversion API
It's been deprecated only a few months ago, long after 0.6.
parent
c7767327
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
libavformat/avformat.h
+4
-4
4 additions, 4 deletions
libavformat/avformat.h
libavformat/metadata.c
+2
-0
2 additions, 0 deletions
libavformat/metadata.c
libavformat/metadata.h
+1
-1
1 addition, 1 deletion
libavformat/metadata.h
libavformat/version.h
+3
-0
3 additions, 0 deletions
libavformat/version.h
with
10 additions
and
5 deletions
libavformat/avformat.h
+
4
−
4
View file @
451d566f
...
@@ -118,7 +118,7 @@ typedef struct {
...
@@ -118,7 +118,7 @@ typedef struct {
}
AVMetadataTag
;
}
AVMetadataTag
;
typedef
struct
AVMetadata
AVMetadata
;
typedef
struct
AVMetadata
AVMetadata
;
#if FF_API_OLD_METADATA
#if FF_API_OLD_METADATA
2
typedef
struct
AVMetadataConv
AVMetadataConv
;
typedef
struct
AVMetadataConv
AVMetadataConv
;
#endif
#endif
...
@@ -159,7 +159,7 @@ attribute_deprecated int av_metadata_set(AVMetadata **pm, const char *key, const
...
@@ -159,7 +159,7 @@ attribute_deprecated int av_metadata_set(AVMetadata **pm, const char *key, const
*/
*/
int
av_metadata_set2
(
AVMetadata
**
pm
,
const
char
*
key
,
const
char
*
value
,
int
flags
);
int
av_metadata_set2
(
AVMetadata
**
pm
,
const
char
*
key
,
const
char
*
value
,
int
flags
);
#if FF_API_OLD_METADATA
#if FF_API_OLD_METADATA
2
/**
/**
* This function is provided for compatibility reason and currently does nothing.
* This function is provided for compatibility reason and currently does nothing.
*/
*/
...
@@ -317,7 +317,7 @@ typedef struct AVOutputFormat {
...
@@ -317,7 +317,7 @@ typedef struct AVOutputFormat {
enum
CodecID
subtitle_codec
;
/**< default subtitle codec */
enum
CodecID
subtitle_codec
;
/**< default subtitle codec */
#if FF_API_OLD_METADATA
#if FF_API_OLD_METADATA
2
const
AVMetadataConv
*
metadata_conv
;
const
AVMetadataConv
*
metadata_conv
;
#endif
#endif
...
@@ -437,7 +437,7 @@ typedef struct AVInputFormat {
...
@@ -437,7 +437,7 @@ typedef struct AVInputFormat {
*/
*/
int
(
*
read_seek2
)(
struct
AVFormatContext
*
s
,
int
stream_index
,
int64_t
min_ts
,
int64_t
ts
,
int64_t
max_ts
,
int
flags
);
int
(
*
read_seek2
)(
struct
AVFormatContext
*
s
,
int
stream_index
,
int64_t
min_ts
,
int64_t
ts
,
int64_t
max_ts
,
int
flags
);
#if FF_API_OLD_METADATA
#if FF_API_OLD_METADATA
2
const
AVMetadataConv
*
metadata_conv
;
const
AVMetadataConv
*
metadata_conv
;
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
libavformat/metadata.c
+
2
−
0
View file @
451d566f
...
@@ -91,7 +91,9 @@ int av_metadata_set(AVMetadata **pm, const char *key, const char *value)
...
@@ -91,7 +91,9 @@ int av_metadata_set(AVMetadata **pm, const char *key, const char *value)
{
{
return
av_metadata_set2
(
pm
,
key
,
value
,
0
);
return
av_metadata_set2
(
pm
,
key
,
value
,
0
);
}
}
#endif
#if FF_API_OLD_METADATA2
void
av_metadata_conv
(
AVFormatContext
*
ctx
,
const
AVMetadataConv
*
d_conv
,
void
av_metadata_conv
(
AVFormatContext
*
ctx
,
const
AVMetadataConv
*
d_conv
,
const
AVMetadataConv
*
s_conv
)
const
AVMetadataConv
*
s_conv
)
{
{
...
...
This diff is collapsed.
Click to expand it.
libavformat/metadata.h
+
1
−
1
View file @
451d566f
...
@@ -39,7 +39,7 @@ struct AVMetadataConv{
...
@@ -39,7 +39,7 @@ struct AVMetadataConv{
const
char
*
native
;
const
char
*
native
;
const
char
*
generic
;
const
char
*
generic
;
};
};
#if !FF_API_OLD_METADATA
#if !FF_API_OLD_METADATA
2
typedef
struct
AVMetadataConv
AVMetadataConv
;
typedef
struct
AVMetadataConv
AVMetadataConv
;
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
libavformat/version.h
+
3
−
0
View file @
451d566f
...
@@ -47,6 +47,9 @@
...
@@ -47,6 +47,9 @@
#ifndef FF_API_OLD_METADATA
#ifndef FF_API_OLD_METADATA
#define FF_API_OLD_METADATA (LIBAVFORMAT_VERSION_MAJOR < 53)
#define FF_API_OLD_METADATA (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif
#endif
#ifndef FF_API_OLD_METADATA2
#define FF_API_OLD_METADATA2 (LIBAVFORMAT_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_URL_CLASS
#ifndef FF_API_URL_CLASS
#define FF_API_URL_CLASS (LIBAVFORMAT_VERSION_MAJOR >= 53)
#define FF_API_URL_CLASS (LIBAVFORMAT_VERSION_MAJOR >= 53)
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment