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
3b297961
Commit
3b297961
authored
Feb 18, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compare the right amount of data, being a little bit more strict
parent
b2bc5fb8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/demux/ogg.c
modules/demux/ogg.c
+5
-5
No files found.
modules/demux/ogg.c
View file @
3b297961
...
@@ -283,14 +283,14 @@ static int Demux( demux_t * p_demux )
...
@@ -283,14 +283,14 @@ static int Demux( demux_t * p_demux )
{
{
if
(
p_stream
->
fmt
.
i_codec
==
VLC_FOURCC
(
't'
,
'h'
,
'e'
,
'o'
)
&&
if
(
p_stream
->
fmt
.
i_codec
==
VLC_FOURCC
(
't'
,
'h'
,
'e'
,
'o'
)
&&
oggpacket
.
bytes
>=
7
&&
oggpacket
.
bytes
>=
7
&&
!
memcmp
(
oggpacket
.
packet
,
"
\x80
theora"
,
6
)
)
!
memcmp
(
oggpacket
.
packet
,
"
\x80
theora"
,
7
)
)
{
{
Ogg_ReadTheoraHeader
(
p_stream
,
&
oggpacket
);
Ogg_ReadTheoraHeader
(
p_stream
,
&
oggpacket
);
p_stream
->
secondary_header_packets
=
0
;
p_stream
->
secondary_header_packets
=
0
;
}
}
else
if
(
p_stream
->
fmt
.
i_codec
==
VLC_FOURCC
(
'v'
,
'o'
,
'r'
,
'b'
)
&&
else
if
(
p_stream
->
fmt
.
i_codec
==
VLC_FOURCC
(
'v'
,
'o'
,
'r'
,
'b'
)
&&
oggpacket
.
bytes
>=
7
&&
oggpacket
.
bytes
>=
7
&&
!
memcmp
(
oggpacket
.
packet
,
"
\x01
vorbis"
,
6
)
)
!
memcmp
(
oggpacket
.
packet
,
"
\x01
vorbis"
,
7
)
)
{
{
Ogg_ReadVorbisHeader
(
p_stream
,
&
oggpacket
);
Ogg_ReadVorbisHeader
(
p_stream
,
&
oggpacket
);
p_stream
->
secondary_header_packets
=
0
;
p_stream
->
secondary_header_packets
=
0
;
...
@@ -782,13 +782,13 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
...
@@ -782,13 +782,13 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
/* Check for Vorbis header */
/* Check for Vorbis header */
if
(
oggpacket
.
bytes
>=
7
&&
if
(
oggpacket
.
bytes
>=
7
&&
!
memcmp
(
oggpacket
.
packet
,
"
\x01
vorbis"
,
6
)
)
!
memcmp
(
oggpacket
.
packet
,
"
\x01
vorbis"
,
7
)
)
{
{
Ogg_ReadVorbisHeader
(
p_stream
,
&
oggpacket
);
Ogg_ReadVorbisHeader
(
p_stream
,
&
oggpacket
);
msg_Dbg
(
p_demux
,
"found vorbis header"
);
msg_Dbg
(
p_demux
,
"found vorbis header"
);
}
}
/* Check for Speex header */
/* Check for Speex header */
else
if
(
oggpacket
.
bytes
>=
7
&&
else
if
(
oggpacket
.
bytes
>=
5
&&
!
memcmp
(
oggpacket
.
packet
,
"Speex"
,
5
)
)
!
memcmp
(
oggpacket
.
packet
,
"Speex"
,
5
)
)
{
{
Ogg_ReadSpeexHeader
(
p_stream
,
&
oggpacket
);
Ogg_ReadSpeexHeader
(
p_stream
,
&
oggpacket
);
...
@@ -832,7 +832,7 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
...
@@ -832,7 +832,7 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
}
}
/* Check for Theora header */
/* Check for Theora header */
else
if
(
oggpacket
.
bytes
>=
7
&&
else
if
(
oggpacket
.
bytes
>=
7
&&
!
memcmp
(
oggpacket
.
packet
,
"
\x80
theora"
,
6
)
)
!
memcmp
(
oggpacket
.
packet
,
"
\x80
theora"
,
7
)
)
{
{
Ogg_ReadTheoraHeader
(
p_stream
,
&
oggpacket
);
Ogg_ReadTheoraHeader
(
p_stream
,
&
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