Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
f8bc9414
Commit
f8bc9414
authored
Jun 01, 2009
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vobsub: strdup memleak (stream_Add copies the format)
parent
cabe90df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/demux/vobsub.c
modules/demux/vobsub.c
+3
-2
No files found.
modules/demux/vobsub.c
View file @
f8bc9414
...
...
@@ -513,7 +513,7 @@ static int ParseVobSubIDX( demux_t *p_demux )
}
else
if
(
!
strncmp
(
"id:"
,
line
,
3
)
)
{
char
language
[
20
];
char
language
[
3
];
int
i_track_id
;
es_format_t
fmt
;
...
...
@@ -523,6 +523,7 @@ static int ParseVobSubIDX( demux_t *p_demux )
{
p_sys
->
i_tracks
++
;
p_sys
->
track
=
realloc
(
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
];
...
...
@@ -536,7 +537,7 @@ static int ParseVobSubIDX( demux_t *p_demux )
es_format_Init
(
&
fmt
,
SPU_ES
,
VLC_CODEC_SPU
);
fmt
.
subs
.
spu
.
i_original_frame_width
=
p_sys
->
i_original_frame_width
;
fmt
.
subs
.
spu
.
i_original_frame_height
=
p_sys
->
i_original_frame_height
;
fmt
.
psz_language
=
strdup
(
language
)
;
fmt
.
psz_language
=
language
;
if
(
p_sys
->
b_palette
)
{
fmt
.
subs
.
spu
.
palette
[
0
]
=
0xBeef
;
...
...
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