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
6001ebac
Commit
6001ebac
authored
Sep 24, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/vorbis.c: wait for the first dated packet before starting decoding anything.
parent
45687727
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
modules/codec/vorbis.c
modules/codec/vorbis.c
+8
-2
No files found.
modules/codec/vorbis.c
View file @
6001ebac
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vorbis.c: vorbis decoder module making use of libvorbis.
* vorbis.c: vorbis decoder module making use of libvorbis.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: vorbis.c,v 1.1
7 2003/09/02 20:19:25
gbazin Exp $
* $Id: vorbis.c,v 1.1
8 2003/09/24 23:45:06
gbazin Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
*
...
@@ -222,7 +222,7 @@ static int RunDecoder( decoder_t *p_dec, block_t *p_block )
...
@@ -222,7 +222,7 @@ static int RunDecoder( decoder_t *p_dec, block_t *p_block )
/* Block to Ogg packet */
/* Block to Ogg packet */
oggpacket
.
packet
=
p_block
->
p_buffer
;
oggpacket
.
packet
=
p_block
->
p_buffer
;
oggpacket
.
bytes
=
p_block
->
i_buffer
;
oggpacket
.
bytes
=
p_block
->
i_buffer
;
oggpacket
.
granulepos
=
p_block
->
i_dts
;
oggpacket
.
granulepos
=
-
1
;
oggpacket
.
b_o_s
=
0
;
oggpacket
.
b_o_s
=
0
;
oggpacket
.
e_o_s
=
0
;
oggpacket
.
e_o_s
=
0
;
oggpacket
.
packetno
=
0
;
oggpacket
.
packetno
=
0
;
...
@@ -382,6 +382,12 @@ static int ProcessPacket( decoder_t *p_dec, ogg_packet *p_oggpacket,
...
@@ -382,6 +382,12 @@ static int ProcessPacket( decoder_t *p_dec, ogg_packet *p_oggpacket,
aout_DateSet
(
&
p_sys
->
end_date
,
i_pts
);
aout_DateSet
(
&
p_sys
->
end_date
,
i_pts
);
}
}
if
(
!
aout_DateGet
(
&
p_sys
->
end_date
)
)
{
/* We've just started the stream, wait for the first PTS. */
return
VLC_SUCCESS
;
}
if
(
p_sys
->
b_packetizer
)
if
(
p_sys
->
b_packetizer
)
{
{
return
SendPacket
(
p_dec
,
p_oggpacket
);
return
SendPacket
(
p_dec
,
p_oggpacket
);
...
...
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