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
89006488
Commit
89006488
authored
May 01, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avcodec: Correctly free the Subtitles structures so it doesn't crash on Win32
Close #3439
parent
9f9f6d11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
modules/codec/avcodec/subtitle.c
modules/codec/avcodec/subtitle.c
+5
-7
No files found.
modules/codec/avcodec/subtitle.c
View file @
89006488
...
...
@@ -262,7 +262,7 @@ static subpicture_t *ConvertSubtitle(decoder_t *dec, AVSubtitle *ffsub, mtime_t
//msg_Err(dec, "SUBS RECT[%d]: %dx%d @%dx%d",
// i, rec->w, rec->h, rec->x, rec->y);
subpicture_region_t
*
region
;
subpicture_region_t
*
region
=
NULL
;
switch
(
ffsub
->
format
)
{
case
0
:
region
=
ConvertRegionRGBA
(
rec
);
...
...
@@ -276,13 +276,11 @@ static subpicture_t *ConvertSubtitle(decoder_t *dec, AVSubtitle *ffsub, mtime_t
*
region_next
=
region
;
region_next
=
&
region
->
p_next
;
}
/* Free AVSubtitleRect
* FIXME isn't there an avcodec function ? */
free
(
rec
->
pict
.
data
[
0
]);
/* Plane */
free
(
rec
->
pict
.
data
[
1
]);
/* Palette */
free
(
rec
);
/* Free AVSubtitleRect */
avpicture_free
(
&
rec
->
pict
);
av_free
(
rec
);
}
free
(
ffsub
->
rects
);
av_
free
(
ffsub
->
rects
);
return
spu
;
}
...
...
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