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
e6a8cb4f
Commit
e6a8cb4f
authored
Nov 21, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mpga: fixed. (using es_out_Send with PES)
parent
621e5f40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
modules/demux/mpeg/mpga.c
modules/demux/mpeg/mpga.c
+9
-9
No files found.
modules/demux/mpeg/mpga.c
View file @
e6a8cb4f
...
...
@@ -2,7 +2,7 @@
* mpga.c : MPEG-I/II Audio input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: mpga.c,v 1.
9 2003/11/16 22:54:12 gbazin
Exp $
* $Id: mpga.c,v 1.
10 2003/11/21 16:07:20 fenrir
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -342,7 +342,7 @@ error:
static
int
Demux
(
input_thread_t
*
p_input
)
{
demux_sys_t
*
p_sys
=
p_input
->
p_demux_data
;
pes_packet_t
*
p_pes
;
block_t
*
p_frame
;
uint32_t
header
;
uint8_t
*
p_peek
;
...
...
@@ -389,19 +389,19 @@ static int Demux( input_thread_t * p_input )
p_input
->
stream
.
p_selected_program
,
p_sys
->
i_time
*
9
/
100
);
if
(
(
p_pes
=
stream_PesPacket
(
p_input
->
s
,
mpga_frame_size
(
header
)
)
)
==
NULL
)
if
(
(
p_frame
=
stream_Block
(
p_input
->
s
,
mpga_frame_size
(
header
)
)
)
==
NULL
)
{
msg_Warn
(
p_input
,
"cannot read data"
);
return
0
;
}
p_pes
->
i_dts
=
p_pes
->
i_pts
=
input_ClockGetTS
(
p_input
,
p_input
->
stream
.
p_selected_program
,
p_sys
->
i_time
*
9
/
100
);
p_frame
->
i_dts
=
p_frame
->
i_pts
=
input_ClockGetTS
(
p_input
,
p_input
->
stream
.
p_selected_program
,
p_sys
->
i_time
*
9
/
100
);
es_out_Send
(
p_input
->
p_es_out
,
p_sys
->
p_es
,
p_
pes
);
es_out_Send
(
p_input
->
p_es_out
,
p_sys
->
p_es
,
p_
frame
);
p_sys
->
i_time
+=
(
mtime_t
)
1000000
*
(
mtime_t
)
mpga_frame_samples
(
header
)
/
...
...
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