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
ca81e3b6
Commit
ca81e3b6
authored
Sep 16, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/mkv: prefix video stereo arrays with ff_.
parent
8b052207
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
matroska.c
libavformat/matroska.c
+2
-2
matroska.h
libavformat/matroska.h
+2
-2
matroskadec.c
libavformat/matroskadec.c
+2
-2
matroskaenc.c
libavformat/matroskaenc.c
+1
-1
No files found.
libavformat/matroska.c
View file @
ca81e3b6
...
...
@@ -104,7 +104,7 @@ const AVMetadataConv ff_mkv_metadata_conv[] = {
{
0
}
};
const
char
*
const
matroska_video_stereo_mode
[
MATROSKA_VIDEO_STEREO_MODE_COUNT
]
=
{
const
char
*
const
ff_
matroska_video_stereo_mode
[
MATROSKA_VIDEO_STEREO_MODE_COUNT
]
=
{
"mono"
,
"left_right"
,
"bottom_top"
,
...
...
@@ -122,7 +122,7 @@ const char * const matroska_video_stereo_mode[MATROSKA_VIDEO_STEREO_MODE_COUNT]
"block_rl"
,
};
const
char
*
const
matroska_video_stereo_plane
[
MATROSKA_VIDEO_STEREO_PLANE_COUNT
]
=
{
const
char
*
const
ff_
matroska_video_stereo_plane
[
MATROSKA_VIDEO_STEREO_PLANE_COUNT
]
=
{
"left"
,
"right"
,
"background"
,
...
...
libavformat/matroska.h
View file @
ca81e3b6
...
...
@@ -260,7 +260,7 @@ typedef struct CodecTags{
extern
const
CodecTags
ff_mkv_codec_tags
[];
extern
const
CodecMime
ff_mkv_mime_tags
[];
extern
const
AVMetadataConv
ff_mkv_metadata_conv
[];
extern
const
char
*
const
matroska_video_stereo_mode
[
MATROSKA_VIDEO_STEREO_MODE_COUNT
];
extern
const
char
*
const
matroska_video_stereo_plane
[
MATROSKA_VIDEO_STEREO_PLANE_COUNT
];
extern
const
char
*
const
ff_
matroska_video_stereo_mode
[
MATROSKA_VIDEO_STEREO_MODE_COUNT
];
extern
const
char
*
const
ff_
matroska_video_stereo_plane
[
MATROSKA_VIDEO_STEREO_PLANE_COUNT
];
#endif
/* AVFORMAT_MATROSKA_H */
libavformat/matroskadec.c
View file @
ca81e3b6
...
...
@@ -1729,7 +1729,7 @@ static int matroska_read_header(AVFormatContext *s)
/* export stereo mode flag as metadata tag */
if
(
track
->
video
.
stereo_mode
&&
track
->
video
.
stereo_mode
<
MATROSKA_VIDEO_STEREO_MODE_COUNT
)
av_dict_set
(
&
st
->
metadata
,
"stereo_mode"
,
matroska_video_stereo_mode
[
track
->
video
.
stereo_mode
],
0
);
av_dict_set
(
&
st
->
metadata
,
"stereo_mode"
,
ff_
matroska_video_stereo_mode
[
track
->
video
.
stereo_mode
],
0
);
/* if we have virtual track, mark the real tracks */
for
(
j
=
0
;
j
<
track
->
operation
.
combine_planes
.
nb_elem
;
j
++
)
{
...
...
@@ -1737,7 +1737,7 @@ static int matroska_read_header(AVFormatContext *s)
if
(
planes
[
j
].
type
>=
MATROSKA_VIDEO_STEREO_PLANE_COUNT
)
continue
;
snprintf
(
buf
,
sizeof
(
buf
),
"%s_%d"
,
matroska_video_stereo_plane
[
planes
[
j
].
type
],
i
);
ff_
matroska_video_stereo_plane
[
planes
[
j
].
type
],
i
);
for
(
k
=
0
;
k
<
matroska
->
tracks
.
nb_elem
;
k
++
)
if
(
planes
[
j
].
uid
==
tracks
[
k
].
uid
)
{
av_dict_set
(
&
s
->
streams
[
k
]
->
metadata
,
...
...
libavformat/matroskaenc.c
View file @
ca81e3b6
...
...
@@ -614,7 +614,7 @@ static int mkv_write_tracks(AVFormatContext *s)
uint64_t
st_mode
=
MATROSKA_VIDEO_STEREO_MODE_COUNT
;
for
(
j
=
0
;
j
<
MATROSKA_VIDEO_STEREO_MODE_COUNT
;
j
++
)
if
(
!
strcmp
(
tag
->
value
,
matroska_video_stereo_mode
[
j
])){
if
(
!
strcmp
(
tag
->
value
,
ff_
matroska_video_stereo_mode
[
j
])){
st_mode
=
j
;
break
;
}
...
...
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