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
a76a1d04
Commit
a76a1d04
authored
Feb 23, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vobsub: language is not necessarily on 2 characters
This fixes quite a few .idx samples that didn't work before.
parent
b44e5fa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/demux/vobsub.c
modules/demux/vobsub.c
+4
-4
No files found.
modules/demux/vobsub.c
View file @
a76a1d04
...
...
@@ -519,25 +519,25 @@ static int ParseVobSubIDX( demux_t *p_demux )
}
else
if
(
!
strncmp
(
"id:"
,
line
,
3
)
)
{
char
language
[
3
];
char
language
[
33
];
/* Usually 2 or 3 letters, sometimes more.
Spec (or lack of) doesn't define any limit */
int
i_track_id
;
es_format_t
fmt
;
/* Lets start a new track */
if
(
sscanf
(
line
,
"id: %
2s
, index: %d"
,
if
(
sscanf
(
line
,
"id: %
32[^ ,]
, index: %d"
,
language
,
&
i_track_id
)
==
2
)
{
p_sys
->
i_tracks
++
;
p_sys
->
track
=
xrealloc
(
p_sys
->
track
,
sizeof
(
vobsub_track_t
)
*
(
p_sys
->
i_tracks
+
1
)
);
language
[
2
]
=
'\0'
;
/* Init the track */
current_tk
=
&
p_sys
->
track
[
p_sys
->
i_tracks
-
1
];
memset
(
current_tk
,
0
,
sizeof
(
vobsub_track_t
)
);
current_tk
->
i_current_subtitle
=
0
;
current_tk
->
i_subtitles
=
0
;
current_tk
->
p_subtitles
=
xmalloc
(
sizeof
(
subtitle_t
)
);
;
current_tk
->
p_subtitles
=
xmalloc
(
sizeof
(
subtitle_t
)
);
current_tk
->
i_track_id
=
i_track_id
;
current_tk
->
i_delay
=
(
int64_t
)
0
;
...
...
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