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
219bc812
Commit
219bc812
authored
May 23, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* raw demuxers: few fixes, add es only after first packet. (size known)
parent
eaefb850
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
modules/demux/mpeg/h264.c
modules/demux/mpeg/h264.c
+5
-7
modules/demux/mpeg/m4v.c
modules/demux/mpeg/m4v.c
+15
-2
No files found.
modules/demux/mpeg/h264.c
View file @
219bc812
...
...
@@ -175,25 +175,23 @@ static int Demux( demux_t *p_demux)
{
block_t
*
p_next
=
p_block_out
->
p_next
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_dts
);
p_block_out
->
i_dts
=
p_sys
->
i_dts
;
p_block_out
->
i_pts
=
p_sys
->
i_dts
;
p_block_out
->
p_next
=
NULL
;
if
(
p_sys
->
p_es
==
NULL
)
{
p_sys
->
p_packetizer
->
fmt_out
.
b_packetized
=
VLC_TRUE
;
p_sys
->
p_es
=
es_out_Add
(
p_demux
->
out
,
&
p_sys
->
p_packetizer
->
fmt_out
);
}
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_dts
);
p_block_out
->
i_dts
=
p_sys
->
i_dts
;
p_block_out
->
i_pts
=
p_sys
->
i_dts
;
es_out_Send
(
p_demux
->
out
,
p_sys
->
p_es
,
p_block_out
);
p_block_out
=
p_next
;
/* FIXME FIXME FIXME FIXME */
p_sys
->
i_dts
+=
(
int64_t
)((
double
)
1000000
.
0
/
p_sys
->
f_fps
);
/* FIXME FIXME FIXME FIXME */
}
}
return
1
;
...
...
modules/demux/mpeg/m4v.c
View file @
219bc812
...
...
@@ -172,12 +172,25 @@ static int Demux( demux_t *p_demux)
{
block_t
*
p_next
=
p_block_out
->
p_next
;
if
(
p_sys
->
p_es
==
NULL
)
{
p_sys
->
p_packetizer
->
fmt_out
.
b_packetized
=
VLC_TRUE
;
p_sys
->
p_es
=
es_out_Add
(
p_demux
->
out
,
&
p_sys
->
p_packetizer
->
fmt_out
);
}
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_dts
);
p_block_out
->
p_next
=
NULL
;
if
(
p_block_out
->
i_pts
==
p_block_out
->
i_dts
)
{
p_block_out
->
i_pts
=
p_sys
->
i_dts
;
}
else
{
p_block_out
->
i_pts
=
0
;
}
p_block_out
->
i_dts
=
p_sys
->
i_dts
;
p_block_out
->
i_pts
=
0
;
p_block_out
->
p_next
=
NULL
;
es_out_Send
(
p_demux
->
out
,
p_sys
->
p_es
,
p_block_out
);
p_block_out
=
p_next
;
...
...
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