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
03c69b44
Commit
03c69b44
authored
Sep 15, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ogg: handle broken chapter extension
parent
2ff0bcea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/demux/xiph_metadata.c
modules/demux/xiph_metadata.c
+6
-4
No files found.
modules/demux/xiph_metadata.c
View file @
03c69b44
...
...
@@ -328,12 +328,13 @@ void vorbis_ParseComment( vlc_meta_t **pp_meta,
(
*
ppf_replay_peak
)[
AUDIO_REPLAY_GAIN_TRACK
]
=
us_atof
(
++
p
);
}
}
else
if
(
!
strncmp
(
psz_comment
,
"CHAPTER"
,
7
)
)
else
if
(
!
strnc
asec
mp
(
psz_comment
,
"CHAPTER"
,
7
)
)
{
unsigned
int
i_chapt
;
seekpoint_t
*
p_seekpoint
=
NULL
;
if
(
strstr
(
psz_comment
,
"NAME="
)
&&
sscanf
(
psz_comment
,
"CHAPTER%uNAME="
,
&
i_chapt
)
==
1
)
if
(
strcasestr
(
psz_comment
,
"NAME="
)
&&
(
sscanf
(
psz_comment
,
"CHAPTER%uNAME="
,
&
i_chapt
)
==
1
||
sscanf
(
psz_comment
,
"chapter%name="
,
&
i_chapt
)
==
1
)
)
{
char
*
p
=
strchr
(
psz_comment
,
'='
);
p_seekpoint
=
getChapterEntry
(
i_chapt
,
&
chapters_array
);
...
...
@@ -341,7 +342,8 @@ void vorbis_ParseComment( vlc_meta_t **pp_meta,
if
(
!
p_seekpoint
->
psz_name
)
p_seekpoint
->
psz_name
=
strdup
(
++
p
);
}
else
if
(
sscanf
(
psz_comment
,
"CHAPTER%u="
,
&
i_chapt
)
==
1
)
else
if
(
sscanf
(
psz_comment
,
"CHAPTER%u="
,
&
i_chapt
)
==
1
||
sscanf
(
psz_comment
,
"chapter%u="
,
&
i_chapt
)
==
1
)
{
unsigned
int
h
,
m
,
s
,
ms
;
char
*
p
=
strchr
(
psz_comment
,
'='
);
...
...
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