Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
150c23b0
Commit
150c23b0
authored
Feb 24, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Feb 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MKV: better mnemonics & logs
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
12e068cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/demux/mkv/mkv.cpp
modules/demux/mkv/mkv.cpp
+6
-6
No files found.
modules/demux/mkv/mkv.cpp
View file @
150c23b0
...
...
@@ -547,19 +547,19 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
const
unsigned
int
i_number_frames
=
block
!=
NULL
?
block
->
NumberFrames
()
:
(
simpleblock
!=
NULL
?
simpleblock
->
NumberFrames
()
:
0
);
for
(
unsigned
int
i
=
0
;
i
<
i_number_frames
;
i
++
)
for
(
unsigned
int
i
_frame
=
0
;
i_frame
<
i_number_frames
;
i_frame
++
)
{
block_t
*
p_block
;
DataBuffer
*
data
;
if
(
simpleblock
!=
NULL
)
{
data
=
&
simpleblock
->
GetBuffer
(
i
);
data
=
&
simpleblock
->
GetBuffer
(
i
_frame
);
// condition when the DTS is correct (keyframe or B frame == NOT P frame)
f_mandatory
=
simpleblock
->
IsDiscardable
()
||
simpleblock
->
IsKeyframe
();
}
else
{
data
=
&
block
->
GetBuffer
(
i
);
data
=
&
block
->
GetBuffer
(
i
_frame
);
// condition when the DTS is correct (keyframe or B frame == NOT P frame)
}
frame_size
+=
data
->
Size
();
...
...
@@ -682,7 +682,7 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
}
#if 0
msg_Dbg( p_demux, "block
i_dts: %"PRId64" / i_pts: %"PRId64
, p_block->i_dts, p_block->i_pts);
msg_Dbg( p_demux, "block
(track=%d) i_dts: %"PRId64" / i_pts: %"PRId64, tk->i_number
, p_block->i_dts, p_block->i_pts);
#endif
if
(
!
tk
->
b_no_duration
)
{
...
...
@@ -691,9 +691,9 @@ msg_Dbg( p_demux, "block i_dts: %"PRId64" / i_pts: %"PRId64, p_block->i_dts, p_b
}
/* FIXME remove when VLC_TS_INVALID work is done */
if
(
i
==
0
||
p_block
->
i_dts
>
VLC_TS_INVALID
)
if
(
i
_frame
==
0
||
p_block
->
i_dts
>
VLC_TS_INVALID
)
p_block
->
i_dts
+=
VLC_TS_0
;
if
(
!
tk
->
b_dts_only
&&
(
i
==
0
||
p_block
->
i_pts
>
VLC_TS_INVALID
)
)
if
(
!
tk
->
b_dts_only
&&
(
i
_frame
==
0
||
p_block
->
i_pts
>
VLC_TS_INVALID
)
)
p_block
->
i_pts
+=
VLC_TS_0
;
es_out_Send
(
p_demux
->
out
,
tk
->
p_es
,
p_block
);
...
...
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