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
724e7d8d
Commit
724e7d8d
authored
Feb 02, 2009
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write display height/width tags
Originally committed as revision 16927 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
faeb2bd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
mxfenc.c
libavformat/mxfenc.c
+9
-1
No files found.
libavformat/mxfenc.c
View file @
724e7d8d
...
...
@@ -178,6 +178,8 @@ static const MXFLocalTagPair mxf_local_tag_batch[] = {
{
0x320D
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x01
,
0x04
,
0x01
,
0x03
,
0x02
,
0x05
,
0x00
,
0x00
,
0x00
}},
/* Video Line Map */
{
0x3203
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x01
,
0x04
,
0x01
,
0x05
,
0x02
,
0x02
,
0x00
,
0x00
,
0x00
}},
/* Stored Width */
{
0x3202
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x01
,
0x04
,
0x01
,
0x05
,
0x02
,
0x01
,
0x00
,
0x00
,
0x00
}},
/* Stored Height */
{
0x3209
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x01
,
0x04
,
0x01
,
0x05
,
0x01
,
0x0C
,
0x00
,
0x00
,
0x00
}},
/* Display Width */
{
0x3208
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x01
,
0x04
,
0x01
,
0x05
,
0x01
,
0x0B
,
0x00
,
0x00
,
0x00
}},
/* Display Height */
{
0x320E
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x01
,
0x04
,
0x01
,
0x01
,
0x01
,
0x01
,
0x00
,
0x00
,
0x00
}},
/* Aspect Ratio */
{
0x3201
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x02
,
0x04
,
0x01
,
0x06
,
0x01
,
0x00
,
0x00
,
0x00
,
0x00
}},
/* Picture Essence Coding */
// Generic Sound Essence Descriptor
...
...
@@ -593,7 +595,7 @@ static void mxf_write_mpegvideo_desc(AVFormatContext *s, AVStream *st)
AVRational
dar
;
int
f1
,
f2
;
mxf_write_generic_desc
(
pb
,
st
,
mxf_mpegvideo_descriptor_key
,
1
33
);
mxf_write_generic_desc
(
pb
,
st
,
mxf_mpegvideo_descriptor_key
,
1
49
);
mxf_write_local_tag
(
pb
,
4
,
0x3203
);
put_be32
(
pb
,
st
->
codec
->
width
);
...
...
@@ -601,6 +603,12 @@ static void mxf_write_mpegvideo_desc(AVFormatContext *s, AVStream *st)
mxf_write_local_tag
(
pb
,
4
,
0x3202
);
put_be32
(
pb
,
stored_height
>>
sc
->
interlaced
);
mxf_write_local_tag
(
pb
,
4
,
0x3209
);
put_be32
(
pb
,
st
->
codec
->
width
);
mxf_write_local_tag
(
pb
,
4
,
0x3208
);
put_be32
(
pb
,
st
->
codec
->
height
>>
sc
->
interlaced
);
// frame layout
mxf_write_local_tag
(
pb
,
1
,
0x320C
);
put_byte
(
pb
,
sc
->
interlaced
);
...
...
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