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
37520a91
Commit
37520a91
authored
Aug 28, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: drop redundant MATROSKA_VIDEO_STEREO_MODE_COUNT identifier
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7771daae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
matroska.c
libavformat/matroska.c
+1
-1
matroska.h
libavformat/matroska.h
+1
-2
matroskadec.c
libavformat/matroskadec.c
+1
-1
matroskaenc.c
libavformat/matroskaenc.c
+2
-2
No files found.
libavformat/matroska.c
View file @
37520a91
...
...
@@ -126,7 +126,7 @@ const AVMetadataConv ff_mkv_metadata_conv[] = {
{
0
}
};
const
char
*
const
ff_matroska_video_stereo_mode
[
MATROSKA_VIDEO_STEREO
_MODE_COUNT
]
=
{
const
char
*
const
ff_matroska_video_stereo_mode
[
MATROSKA_VIDEO_STEREO
MODE_TYPE_NB
]
=
{
"mono"
,
"left_right"
,
"bottom_top"
,
...
...
libavformat/matroska.h
View file @
37520a91
...
...
@@ -276,13 +276,12 @@ typedef struct CodecTags{
/* max. depth in the EBML tree structure */
#define EBML_MAX_DEPTH 16
#define MATROSKA_VIDEO_STEREO_MODE_COUNT 15
#define MATROSKA_VIDEO_STEREO_PLANE_COUNT 3
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
ff_matroska_video_stereo_mode
[
MATROSKA_VIDEO_STEREO
_MODE_COUNT
];
extern
const
char
*
const
ff_matroska_video_stereo_mode
[
MATROSKA_VIDEO_STEREO
MODE_TYPE_NB
];
extern
const
char
*
const
ff_matroska_video_stereo_plane
[
MATROSKA_VIDEO_STEREO_PLANE_COUNT
];
/* AVStream Metadata tag keys for WebM Dash Manifest */
...
...
libavformat/matroskadec.c
View file @
37520a91
...
...
@@ -1985,7 +1985,7 @@ static int matroska_parse_tracks(AVFormatContext *s)
}
/* export stereo mode flag as metadata tag */
if
(
track
->
video
.
stereo_mode
&&
track
->
video
.
stereo_mode
<
MATROSKA_VIDEO_STEREO
_MODE_COUNT
)
if
(
track
->
video
.
stereo_mode
&&
track
->
video
.
stereo_mode
<
MATROSKA_VIDEO_STEREO
MODE_TYPE_NB
)
av_dict_set
(
&
st
->
metadata
,
"stereo_mode"
,
ff_matroska_video_stereo_mode
[
track
->
video
.
stereo_mode
],
0
);
/* export alpha mode flag as metadata tag */
...
...
libavformat/matroskaenc.c
View file @
37520a91
...
...
@@ -708,7 +708,7 @@ static int mkv_write_stereo_mode(AVFormatContext *s, AVIOContext *pb,
(
tag
=
av_dict_get
(
s
->
metadata
,
"stereo_mode"
,
NULL
,
0
)))
{
int
stereo_mode
=
atoi
(
tag
->
value
);
for
(
i
=
0
;
i
<
MATROSKA_VIDEO_STEREO
_MODE_COUNT
;
i
++
)
for
(
i
=
0
;
i
<
MATROSKA_VIDEO_STEREO
MODE_TYPE_NB
;
i
++
)
if
(
!
strcmp
(
tag
->
value
,
ff_matroska_video_stereo_mode
[
i
])){
stereo_mode
=
i
;
break
;
...
...
@@ -774,7 +774,7 @@ static int mkv_write_stereo_mode(AVFormatContext *s, AVIOContext *pb,
if
((
mode
==
MODE_WEBM
&&
format
>
MATROSKA_VIDEO_STEREOMODE_TYPE_TOP_BOTTOM
&&
format
!=
MATROSKA_VIDEO_STEREOMODE_TYPE_RIGHT_LEFT
)
||
format
>=
MATROSKA_VIDEO_STEREO
_MODE_COUNT
)
{
||
format
>=
MATROSKA_VIDEO_STEREO
MODE_TYPE_NB
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"The specified stereo mode is not valid.
\n
"
);
format
=
MATROSKA_VIDEO_STEREOMODE_TYPE_NB
;
...
...
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