Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-good
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
ad05dfc0
Commit
ad05dfc0
authored
May 09, 2010
by
Philip Jägenstedt
Committed by
Sebastian Dröge
May 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskamux: Use SimpleBlock for WebM when possible
parent
1daeb26d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
gst/matroska/matroska-mux.c
gst/matroska/matroska-mux.c
+4
-2
No files found.
gst/matroska/matroska-mux.c
View file @
ad05dfc0
...
...
@@ -2600,7 +2600,7 @@ gst_matroska_mux_write_data (GstMatroskaMux * mux, GstMatroskaPad * collect_pad)
}
}
/* write the block, for
matroska v2
use SimpleBlock if possible
/* write the block, for
Matroska v2 and WebM
use SimpleBlock if possible
* one slice (*breath*).
* FIXME: Need to do correct lacing! */
relative_timestamp64
=
GST_BUFFER_TIMESTAMP
(
buf
)
-
mux
->
cluster_time
;
...
...
@@ -2612,7 +2612,9 @@ gst_matroska_mux_write_data (GstMatroskaMux * mux, GstMatroskaPad * collect_pad)
relative_timestamp64
-=
mux
->
time_scale
/
2
;
}
relative_timestamp
=
relative_timestamp64
/
(
gint64
)
mux
->
time_scale
;
if
(
mux
->
doctype
==
GST_MATROSKA_DOCTYPE_MATROSKA
&&
mux
->
doctype_version
>
1
if
(((
mux
->
doctype
==
GST_MATROSKA_DOCTYPE_MATROSKA
&&
mux
->
doctype_version
>
1
)
||
mux
->
doctype
==
GST_MATROSKA_DOCTYPE_WEBM
)
&&
!
write_duration
)
{
int
flags
=
GST_BUFFER_FLAG_IS_SET
(
buf
,
GST_BUFFER_FLAG_DELTA_UNIT
)
?
0
:
0x80
;
...
...
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