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
fc941878
Commit
fc941878
authored
Jan 20, 2009
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix gxf time code mark out value
Originally committed as revision 16697 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
27cb5122
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
gxfenc.c
libavformat/gxfenc.c
+10
-1
libav.regression.ref
tests/libav.regression.ref
+1
-1
No files found.
libavformat/gxfenc.c
View file @
fc941878
...
@@ -353,13 +353,22 @@ static int gxf_write_flt_packet(ByteIOContext *pb, GXFContext *ctx)
...
@@ -353,13 +353,22 @@ static int gxf_write_flt_packet(ByteIOContext *pb, GXFContext *ctx)
static
int
gxf_write_umf_material_description
(
ByteIOContext
*
pb
,
GXFContext
*
ctx
)
static
int
gxf_write_umf_material_description
(
ByteIOContext
*
pb
,
GXFContext
*
ctx
)
{
{
// XXX drop frame
int
fps
=
ctx
->
sample_rate
/
2
;
int
frames
=
ctx
->
nb_frames
/
2
;
uint32_t
timecode
=
frames
%
fps
<<
24
|
// frames
frames
/
fps
%
60
<<
16
|
// seconds
frames
/
fps
*
60
%
60
<<
8
|
// minutes
frames
/
fps
*
3600
%
24
<<
3
;
// hours
put_le32
(
pb
,
ctx
->
flags
);
put_le32
(
pb
,
ctx
->
flags
);
put_le32
(
pb
,
ctx
->
nb_frames
);
/* length of the longest track */
put_le32
(
pb
,
ctx
->
nb_frames
);
/* length of the longest track */
put_le32
(
pb
,
ctx
->
nb_frames
);
/* length of the shortest track */
put_le32
(
pb
,
ctx
->
nb_frames
);
/* length of the shortest track */
put_le32
(
pb
,
0
);
/* mark in */
put_le32
(
pb
,
0
);
/* mark in */
put_le32
(
pb
,
ctx
->
nb_frames
);
/* mark out */
put_le32
(
pb
,
ctx
->
nb_frames
);
/* mark out */
put_le32
(
pb
,
0
);
/* timecode mark in */
put_le32
(
pb
,
0
);
/* timecode mark in */
put_le32
(
pb
,
ctx
->
nb_frames
);
/* timecode mark out */
put_le32
(
pb
,
timecode
);
/* timecode mark out */
put_le64
(
pb
,
ctx
->
fc
->
timestamp
);
/* modification time */
put_le64
(
pb
,
ctx
->
fc
->
timestamp
);
/* modification time */
put_le64
(
pb
,
ctx
->
fc
->
timestamp
);
/* creation time */
put_le64
(
pb
,
ctx
->
fc
->
timestamp
);
/* creation time */
put_le16
(
pb
,
0
);
/* reserved */
put_le16
(
pb
,
0
);
/* reserved */
...
...
tests/libav.regression.ref
View file @
fc941878
...
@@ -27,7 +27,7 @@ af78858062599fcbba049e4a02588a15 *./tests/data/b-libav.mov
...
@@ -27,7 +27,7 @@ af78858062599fcbba049e4a02588a15 *./tests/data/b-libav.mov
913b6199765b1dcba196706574621c2f *./tests/data/b-libav.dv
913b6199765b1dcba196706574621c2f *./tests/data/b-libav.dv
3600000 ./tests/data/b-libav.dv
3600000 ./tests/data/b-libav.dv
./tests/data/b-libav.dv CRC=0x7787e173
./tests/data/b-libav.dv CRC=0x7787e173
8a6452b105db3e112fb041a98eda7ea5
*./tests/data/b-libav.gxf
a8d66ca88df1f6ba7806f11224d03adc
*./tests/data/b-libav.gxf
805992 ./tests/data/b-libav.gxf
805992 ./tests/data/b-libav.gxf
./tests/data/b-libav.gxf CRC=0x9c06676e
./tests/data/b-libav.gxf CRC=0x9c06676e
66a6584f9e83e8ea3af822a3ba71fbbe *./tests/data/b-libav.nut
66a6584f9e83e8ea3af822a3ba71fbbe *./tests/data/b-libav.nut
...
...
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