Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
f92f94bc
Commit
f92f94bc
authored
Jan 18, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ts: fixed ms-codec playback.
parent
1a31316d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
modules/demux/ts.c
modules/demux/ts.c
+8
-11
No files found.
modules/demux/ts.c
View file @
f92f94bc
...
...
@@ -2,7 +2,7 @@
* ts.c: Transport Stream input module for VLC.
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id: ts.c,v 1.
2 2004/01/16 02:01
:11 fenrir Exp $
* $Id: ts.c,v 1.
3 2004/01/18 01:49
:11 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -737,15 +737,9 @@ static void ParsePES ( demux_t *p_demux, ts_pid_t *pid )
{
p_pes
->
i_pts
=
i_pts
*
100
/
9
;
}
if
(
pid
->
es
->
p_mpeg4desc
)
{
/* For mpeg4 we first gather the packet -> will make ffmpeg happier */
es_out_Send
(
p_demux
->
out
,
pid
->
es
->
id
,
block_ChainGather
(
p_pes
)
);
}
else
{
es_out_Send
(
p_demux
->
out
,
pid
->
es
->
id
,
p_pes
);
}
/* For mpeg4/mscodec we first gather the packet -> will make ffmpeg happier */
es_out_Send
(
p_demux
->
out
,
pid
->
es
->
id
,
block_ChainGather
(
p_pes
)
);
}
else
{
...
...
@@ -806,7 +800,7 @@ static vlc_bool_t GatherPES( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
{
if
(
pid
->
i_cc
==
0xff
)
{
msg_Warn
(
p_demux
,
"first packet for pid=0x%x c=0x%x"
,
pid
->
i_pid
,
i_cc
);
msg_Warn
(
p_demux
,
"first packet for pid=0x%x c
c
=0x%x"
,
pid
->
i_pid
,
i_cc
);
pid
->
i_cc
=
i_cc
;
}
else
if
(
i_diff
!=
0
)
...
...
@@ -1546,8 +1540,11 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
if
(
p_dr
&&
p_dr
->
i_length
>=
8
)
{
pid
->
es
->
fmt
.
i_cat
=
VIDEO_ES
;
pid
->
es
->
fmt
.
i_codec
=
VLC_FOURCC
(
p_dr
->
p_data
[
0
],
p_dr
->
p_data
[
1
],
p_dr
->
p_data
[
2
],
p_dr
->
p_data
[
3
]
);
pid
->
es
->
fmt
.
video
.
i_width
=
(
p_dr
->
p_data
[
4
]
<<
8
)
|
p_dr
->
p_data
[
5
];
pid
->
es
->
fmt
.
video
.
i_height
=
(
p_dr
->
p_data
[
6
]
<<
8
)
|
p_dr
->
p_data
[
7
];
pid
->
es
->
fmt
.
i_extra
=
(
p_dr
->
p_data
[
8
]
<<
8
)
|
p_dr
->
p_data
[
9
];
if
(
pid
->
es
->
fmt
.
i_extra
>
0
)
...
...
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