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
06ed4873
Commit
06ed4873
authored
Mar 01, 2011
by
Baptiste Coudurier
Committed by
Mans Rullgard
Mar 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
movenc: use correct tag for dvcpro hd
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
99bbc781
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
movenc.c
libavformat/movenc.c
+17
-6
No files found.
libavformat/movenc.c
View file @
06ed4873
...
...
@@ -623,12 +623,23 @@ static int mov_get_dv_codec_tag(AVFormatContext *s, MOVTrack *track)
{
int
tag
;
if
(
track
->
enc
->
height
==
480
)
/* NTSC */
if
(
track
->
enc
->
pix_fmt
==
PIX_FMT_YUV422P
)
tag
=
MKTAG
(
'd'
,
'v'
,
'5'
,
'n'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'c'
,
' '
);
else
if
(
track
->
enc
->
pix_fmt
==
PIX_FMT_YUV422P
)
tag
=
MKTAG
(
'd'
,
'v'
,
'5'
,
'p'
);
else
if
(
track
->
enc
->
pix_fmt
==
PIX_FMT_YUV420P
)
tag
=
MKTAG
(
'd'
,
'v'
,
'c'
,
'p'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'p'
,
'p'
);
if
(
track
->
enc
->
width
==
720
)
/* SD */
if
(
track
->
enc
->
height
==
480
)
/* NTSC */
if
(
track
->
enc
->
pix_fmt
==
PIX_FMT_YUV422P
)
tag
=
MKTAG
(
'd'
,
'v'
,
'5'
,
'n'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'c'
,
' '
);
else
if
(
track
->
enc
->
pix_fmt
==
PIX_FMT_YUV422P
)
tag
=
MKTAG
(
'd'
,
'v'
,
'5'
,
'p'
);
else
if
(
track
->
enc
->
pix_fmt
==
PIX_FMT_YUV420P
)
tag
=
MKTAG
(
'd'
,
'v'
,
'c'
,
'p'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'p'
,
'p'
);
else
if
(
track
->
enc
->
height
==
720
)
/* HD 720 line */
if
(
track
->
enc
->
time_base
.
den
==
50
)
tag
=
MKTAG
(
'd'
,
'v'
,
'h'
,
'q'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'h'
,
'p'
);
else
if
(
track
->
enc
->
height
==
1080
)
/* HD 1080 line */
if
(
track
->
enc
->
time_base
.
den
==
25
)
tag
=
MKTAG
(
'd'
,
'v'
,
'h'
,
'5'
);
else
tag
=
MKTAG
(
'd'
,
'v'
,
'h'
,
'6'
);
else
{
av_log
(
s
,
AV_LOG_ERROR
,
"unsupported height for dv codec
\n
"
);
return
0
;
}
return
tag
;
}
...
...
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