Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6ab6d20b
Commit
6ab6d20b
authored
Dec 22, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ogg: do PCR handling on stream boundary
parent
fc669146
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
modules/demux/ogg.c
modules/demux/ogg.c
+18
-1
modules/demux/ogg.h
modules/demux/ogg.h
+4
-0
No files found.
modules/demux/ogg.c
View file @
6ab6d20b
...
@@ -266,6 +266,7 @@ static int Demux( demux_t * p_demux )
...
@@ -266,6 +266,7 @@ static int Demux( demux_t * p_demux )
TAB_CLEAN
(
p_sys
->
i_streams
,
p_sys
->
pp_stream
);
TAB_CLEAN
(
p_sys
->
i_streams
,
p_sys
->
pp_stream
);
}
}
Ogg_EndOfStream
(
p_demux
);
Ogg_EndOfStream
(
p_demux
);
p_sys
->
b_chained_boundary
=
true
;
}
}
if
(
Ogg_BeginningOfStream
(
p_demux
)
!=
VLC_SUCCESS
)
if
(
Ogg_BeginningOfStream
(
p_demux
)
!=
VLC_SUCCESS
)
...
@@ -277,7 +278,13 @@ static int Demux( demux_t * p_demux )
...
@@ -277,7 +278,13 @@ static int Demux( demux_t * p_demux )
Oggseek_ProbeEnd
(
p_demux
);
Oggseek_ProbeEnd
(
p_demux
);
msg_Dbg
(
p_demux
,
"beginning of a group of logical streams"
);
msg_Dbg
(
p_demux
,
"beginning of a group of logical streams"
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
VLC_TS_0
);
if
(
p_sys
->
b_chained_boundary
)
{
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
p_sys
->
b_chained_boundary
=
false
;
}
else
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
VLC_TS_0
);
}
}
if
(
p_sys
->
b_preparsing_done
)
if
(
p_sys
->
b_preparsing_done
)
...
@@ -1287,6 +1294,12 @@ static void Ogg_DecodePacket( demux_t *p_demux,
...
@@ -1287,6 +1294,12 @@ static void Ogg_DecodePacket( demux_t *p_demux,
p_block
->
i_buffer
=
0
;
p_block
->
i_buffer
=
0
;
}
}
if
(
p_stream
->
b_reusing
)
{
p_stream
->
b_reusing
=
false
;
p_block
->
i_flags
|=
BLOCK_FLAG_DISCONTINUITY
;
}
if
(
p_stream
->
fmt
.
i_codec
==
VLC_CODEC_TARKIN
)
if
(
p_stream
->
fmt
.
i_codec
==
VLC_CODEC_TARKIN
)
{
{
/* FIXME: the biggest hack I've ever done */
/* FIXME: the biggest hack I've ever done */
...
@@ -1854,6 +1867,10 @@ static void Ogg_CreateES( demux_t *p_demux )
...
@@ -1854,6 +1867,10 @@ static void Ogg_CreateES( demux_t *p_demux )
msg_Dbg
(
p_demux
,
"will reuse old stream to avoid glitch"
);
msg_Dbg
(
p_demux
,
"will reuse old stream to avoid glitch"
);
p_stream
->
p_es
=
p_old_stream
->
p_es
;
p_stream
->
p_es
=
p_old_stream
->
p_es
;
p_stream
->
b_finished
=
false
;
p_stream
->
b_reinit
=
false
;
p_stream
->
b_initializing
=
false
;
p_stream
->
b_reusing
=
true
;
es_format_Copy
(
&
p_stream
->
fmt_old
,
&
p_old_stream
->
fmt
);
es_format_Copy
(
&
p_stream
->
fmt_old
,
&
p_old_stream
->
fmt
);
p_old_stream
->
p_es
=
NULL
;
p_old_stream
->
p_es
=
NULL
;
...
...
modules/demux/ogg.h
View file @
6ab6d20b
...
@@ -75,6 +75,7 @@ typedef struct logical_stream_s
...
@@ -75,6 +75,7 @@ typedef struct logical_stream_s
bool
b_initializing
;
bool
b_initializing
;
bool
b_finished
;
bool
b_finished
;
bool
b_reinit
;
bool
b_reinit
;
bool
b_reusing
;
bool
b_oggds
;
bool
b_oggds
;
int
i_granule_shift
;
int
i_granule_shift
;
...
@@ -133,6 +134,9 @@ struct demux_sys_t
...
@@ -133,6 +134,9 @@ struct demux_sys_t
* the sub-streams */
* the sub-streams */
mtime_t
i_pcr
;
mtime_t
i_pcr
;
/* new stream or starting from a chain */
bool
b_chained_boundary
;
/* bitrate */
/* bitrate */
int
i_bitrate
;
int
i_bitrate
;
bool
b_partial_bitrate
;
bool
b_partial_bitrate
;
...
...
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