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
12767713
Commit
12767713
authored
Jun 26, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed support of some OGM files (closed #4724).
parent
cc02b250
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/demux/ogg.c
modules/demux/ogg.c
+5
-3
No files found.
modules/demux/ogg.c
View file @
12767713
...
@@ -1139,7 +1139,7 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
...
@@ -1139,7 +1139,7 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
}
}
}
}
else
if
(
(
*
oggpacket
.
packet
&
PACKET_TYPE_BITS
)
==
PACKET_TYPE_HEADER
&&
else
if
(
(
*
oggpacket
.
packet
&
PACKET_TYPE_BITS
)
==
PACKET_TYPE_HEADER
&&
oggpacket
.
bytes
>=
56
+
1
)
oggpacket
.
bytes
>=
44
+
1
)
{
{
stream_header_t
tmp
;
stream_header_t
tmp
;
stream_header_t
*
st
=
&
tmp
;
stream_header_t
*
st
=
&
tmp
;
...
@@ -1154,7 +1154,8 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
...
@@ -1154,7 +1154,8 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
st
->
bits_per_sample
=
GetWLE
(
&
oggpacket
.
packet
[
1
+
40
]
);
// (padding 2)
st
->
bits_per_sample
=
GetWLE
(
&
oggpacket
.
packet
[
1
+
40
]
);
// (padding 2)
/* Check for video header (new format) */
/* Check for video header (new format) */
if
(
!
strncmp
(
st
->
streamtype
,
"video"
,
5
)
)
if
(
!
strncmp
(
st
->
streamtype
,
"video"
,
5
)
&&
oggpacket
.
bytes
>=
52
+
1
)
{
{
st
->
sh
.
video
.
width
=
GetDWLE
(
&
oggpacket
.
packet
[
1
+
44
]
);
st
->
sh
.
video
.
width
=
GetDWLE
(
&
oggpacket
.
packet
[
1
+
44
]
);
st
->
sh
.
video
.
height
=
GetDWLE
(
&
oggpacket
.
packet
[
1
+
48
]
);
st
->
sh
.
video
.
height
=
GetDWLE
(
&
oggpacket
.
packet
[
1
+
48
]
);
...
@@ -1187,7 +1188,8 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
...
@@ -1187,7 +1188,8 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
p_stream
->
fmt
.
video
.
i_bits_per_pixel
);
p_stream
->
fmt
.
video
.
i_bits_per_pixel
);
}
}
/* Check for audio header (new format) */
/* Check for audio header (new format) */
else
if
(
!
strncmp
(
st
->
streamtype
,
"audio"
,
5
)
)
else
if
(
!
strncmp
(
st
->
streamtype
,
"audio"
,
5
)
&&
oggpacket
.
bytes
>=
56
+
1
)
{
{
char
p_buffer
[
5
];
char
p_buffer
[
5
];
int
i_extra_size
;
int
i_extra_size
;
...
...
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