Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
9adcbb2f
Commit
9adcbb2f
authored
May 20, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed/improved support for video timestamp in mkv.
parent
07990fcd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
modules/demux/mkv/matroska_segment.cpp
modules/demux/mkv/matroska_segment.cpp
+2
-0
modules/demux/mkv/mkv.cpp
modules/demux/mkv/mkv.cpp
+5
-1
modules/demux/mkv/mkv.hpp
modules/demux/mkv/mkv.hpp
+1
-0
No files found.
modules/demux/mkv/matroska_segment.cpp
View file @
9adcbb2f
...
@@ -831,6 +831,7 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
...
@@ -831,6 +831,7 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
tracks
[
i_track
]
->
fmt
.
i_extra
=
tracks
[
i_track
]
->
i_extra_data
;
tracks
[
i_track
]
->
fmt
.
i_extra
=
tracks
[
i_track
]
->
i_extra_data
;
tracks
[
i_track
]
->
fmt
.
p_extra
=
xmalloc
(
tracks
[
i_track
]
->
i_extra_data
);
tracks
[
i_track
]
->
fmt
.
p_extra
=
xmalloc
(
tracks
[
i_track
]
->
i_extra_data
);
memcpy
(
tracks
[
i_track
]
->
fmt
.
p_extra
,
tracks
[
i_track
]
->
p_extra_data
,
tracks
[
i_track
]
->
i_extra_data
);
memcpy
(
tracks
[
i_track
]
->
fmt
.
p_extra
,
tracks
[
i_track
]
->
p_extra_data
,
tracks
[
i_track
]
->
i_extra_data
);
tracks
[
i_track
]
->
b_pts_only
=
true
;
}
}
else
if
(
!
strncmp
(
tracks
[
i_track
]
->
psz_codec
,
"V_REAL/RV"
,
9
)
)
else
if
(
!
strncmp
(
tracks
[
i_track
]
->
psz_codec
,
"V_REAL/RV"
,
9
)
)
{
{
...
@@ -861,6 +862,7 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
...
@@ -861,6 +862,7 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
else
if
(
!
strncmp
(
tracks
[
i_track
]
->
psz_codec
,
"V_VP8"
,
5
)
)
else
if
(
!
strncmp
(
tracks
[
i_track
]
->
psz_codec
,
"V_VP8"
,
5
)
)
{
{
tracks
[
i_track
]
->
fmt
.
i_codec
=
VLC_CODEC_VP8
;
tracks
[
i_track
]
->
fmt
.
i_codec
=
VLC_CODEC_VP8
;
tracks
[
i_track
]
->
b_pts_only
=
true
;
}
}
else
if
(
!
strncmp
(
tracks
[
i_track
]
->
psz_codec
,
"V_MPEG4"
,
7
)
)
else
if
(
!
strncmp
(
tracks
[
i_track
]
->
psz_codec
,
"V_MPEG4"
,
7
)
)
{
{
...
...
modules/demux/mkv/mkv.cpp
View file @
9adcbb2f
...
@@ -589,6 +589,11 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
...
@@ -589,6 +589,11 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
p_block
->
i_pts
=
VLC_TS_INVALID
;
p_block
->
i_pts
=
VLC_TS_INVALID
;
p_block
->
i_dts
=
i_pts
;
p_block
->
i_dts
=
i_pts
;
}
}
else
if
(
tk
->
b_pts_only
)
{
p_block
->
i_pts
=
i_pts
;
p_block
->
i_dts
=
i_pts
;
}
else
else
{
{
p_block
->
i_pts
=
i_pts
;
p_block
->
i_pts
=
i_pts
;
...
@@ -596,7 +601,6 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
...
@@ -596,7 +601,6 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
p_block
->
i_dts
=
p_block
->
i_pts
;
p_block
->
i_dts
=
p_block
->
i_pts
;
else
else
p_block
->
i_dts
=
min
(
i_pts
,
tk
->
i_last_dts
+
(
mtime_t
)(
tk
->
i_default_duration
>>
10
));
p_block
->
i_dts
=
min
(
i_pts
,
tk
->
i_last_dts
+
(
mtime_t
)(
tk
->
i_default_duration
>>
10
));
p_sys
->
i_pts
=
p_block
->
i_dts
;
}
}
}
}
tk
->
i_last_dts
=
p_block
->
i_dts
;
tk
->
i_last_dts
=
p_block
->
i_dts
;
...
...
modules/demux/mkv/mkv.hpp
View file @
9adcbb2f
...
@@ -187,6 +187,7 @@ typedef struct
...
@@ -187,6 +187,7 @@ typedef struct
char
*
psz_codec
;
char
*
psz_codec
;
bool
b_dts_only
;
bool
b_dts_only
;
bool
b_pts_only
;
uint64_t
i_default_duration
;
uint64_t
i_default_duration
;
float
f_timecodescale
;
float
f_timecodescale
;
...
...
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