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
407651b1
Commit
407651b1
authored
Oct 11, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ogg: correctly handle speex headers (fix #1197)
parent
bdaf3526
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
modules/demux/ogg.c
modules/demux/ogg.c
+10
-1
modules/demux/ogg.h
modules/demux/ogg.h
+1
-0
No files found.
modules/demux/ogg.c
View file @
407651b1
...
...
@@ -760,13 +760,18 @@ static void Ogg_DecodePacket( demux_t *p_demux,
switch
(
p_stream
->
fmt
.
i_codec
)
{
case
VLC_CODEC_VORBIS
:
case
VLC_CODEC_SPEEX
:
case
VLC_CODEC_THEORA
:
if
(
p_stream
->
i_packets_backup
==
3
)
p_stream
->
b_force_backup
=
false
;
b_xiph
=
true
;
break
;
case
VLC_CODEC_SPEEX
:
if
(
p_stream
->
i_packets_backup
==
2
+
p_stream
->
i_extra_headers_packets
)
p_stream
->
b_force_backup
=
false
;
b_xiph
=
true
;
break
;
case
VLC_CODEC_OPUS
:
if
(
p_stream
->
i_packets_backup
==
2
)
p_stream
->
b_force_backup
=
false
;
...
...
@@ -2098,6 +2103,10 @@ static void Ogg_ReadSpeexHeader( logical_stream_t *p_stream,
p_stream
->
fmt
.
audio
.
i_channels
=
oggpack_read
(
&
opb
,
32
);
fill_channels_info
(
&
p_stream
->
fmt
.
audio
);
p_stream
->
fmt
.
i_bitrate
=
oggpack_read
(
&
opb
,
32
);
oggpack_adv
(
&
opb
,
32
);
/* frame_size */
oggpack_adv
(
&
opb
,
32
);
/* vbr */
oggpack_adv
(
&
opb
,
32
);
/* frames_per_packet */
p_stream
->
i_extra_headers_packets
=
oggpack_read
(
&
opb
,
32
);
/* extra_headers */
}
static
void
Ogg_ReadOpusHeader
(
demux_t
*
p_demux
,
...
...
modules/demux/ogg.h
View file @
407651b1
...
...
@@ -44,6 +44,7 @@ typedef struct logical_stream_s
* them to the decoder. */
bool
b_force_backup
;
int
i_packets_backup
;
int32_t
i_extra_headers_packets
;
void
*
p_headers
;
int
i_headers
;
ogg_int64_t
i_previous_granulepos
;
...
...
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