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
fefe9bd7
Commit
fefe9bd7
authored
Oct 21, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavformat/movenc: add {} to complex ifs
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
217193fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
movenc.c
libavformat/movenc.c
+6
-6
No files found.
libavformat/movenc.c
View file @
fefe9bd7
...
@@ -869,20 +869,20 @@ static int mov_get_dv_codec_tag(AVFormatContext *s, MOVTrack *track)
...
@@ -869,20 +869,20 @@ static int mov_get_dv_codec_tag(AVFormatContext *s, MOVTrack *track)
{
{
int
tag
;
int
tag
;
if
(
track
->
enc
->
width
==
720
)
/* SD */
if
(
track
->
enc
->
width
==
720
)
{
/* SD */
if
(
track
->
enc
->
height
==
480
)
/* NTSC */
if
(
track
->
enc
->
height
==
480
)
{
/* NTSC */
if
(
track
->
enc
->
pix_fmt
==
AV_PIX_FMT_YUV422P
)
tag
=
MKTAG
(
'd'
,
'v'
,
'5'
,
'n'
);
if
(
track
->
enc
->
pix_fmt
==
AV_PIX_FMT_YUV422P
)
tag
=
MKTAG
(
'd'
,
'v'
,
'5'
,
'n'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'c'
,
' '
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'c'
,
' '
);
else
if
(
track
->
enc
->
pix_fmt
==
AV_PIX_FMT_YUV422P
)
tag
=
MKTAG
(
'd'
,
'v'
,
'5'
,
'p'
);
}
else
if
(
track
->
enc
->
pix_fmt
==
AV_PIX_FMT_YUV422P
)
tag
=
MKTAG
(
'd'
,
'v'
,
'5'
,
'p'
);
else
if
(
track
->
enc
->
pix_fmt
==
AV_PIX_FMT_YUV420P
)
tag
=
MKTAG
(
'd'
,
'v'
,
'c'
,
'p'
);
else
if
(
track
->
enc
->
pix_fmt
==
AV_PIX_FMT_YUV420P
)
tag
=
MKTAG
(
'd'
,
'v'
,
'c'
,
'p'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'p'
,
'p'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'p'
,
'p'
);
else
if
(
track
->
enc
->
height
==
720
)
/* HD 720 line */
}
else
if
(
track
->
enc
->
height
==
720
)
{
/* HD 720 line */
if
(
track
->
enc
->
time_base
.
den
==
50
)
tag
=
MKTAG
(
'd'
,
'v'
,
'h'
,
'q'
);
if
(
track
->
enc
->
time_base
.
den
==
50
)
tag
=
MKTAG
(
'd'
,
'v'
,
'h'
,
'q'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'h'
,
'p'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'h'
,
'p'
);
else
if
(
track
->
enc
->
height
==
1080
)
/* HD 1080 line */
}
else
if
(
track
->
enc
->
height
==
1080
)
{
/* HD 1080 line */
if
(
track
->
enc
->
time_base
.
den
==
25
)
tag
=
MKTAG
(
'd'
,
'v'
,
'h'
,
'5'
);
if
(
track
->
enc
->
time_base
.
den
==
25
)
tag
=
MKTAG
(
'd'
,
'v'
,
'h'
,
'5'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'h'
,
'6'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'h'
,
'6'
);
else
{
}
else
{
av_log
(
s
,
AV_LOG_ERROR
,
"unsupported height for dv codec
\n
"
);
av_log
(
s
,
AV_LOG_ERROR
,
"unsupported height for dv codec
\n
"
);
return
0
;
return
0
;
}
}
...
...
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