Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
25eabfa9
Commit
25eabfa9
authored
Jan 02, 2006
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/image.c: don't forget to free the temporary pictures or we'll
rapidly leak gigabytes of memory.
parent
11435ffa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
src/misc/image.c
src/misc/image.c
+11
-5
No files found.
src/misc/image.c
View file @
25eabfa9
...
@@ -270,7 +270,7 @@ static block_t *ImageWrite( image_handler_t *p_image, picture_t *p_pic,
...
@@ -270,7 +270,7 @@ static block_t *ImageWrite( image_handler_t *p_image, picture_t *p_pic,
p_image
->
p_enc
->
fmt_in
.
video
.
i_width
!=
p_fmt_in
->
i_width
||
p_image
->
p_enc
->
fmt_in
.
video
.
i_width
!=
p_fmt_in
->
i_width
||
p_image
->
p_enc
->
fmt_in
.
video
.
i_height
!=
p_fmt_in
->
i_height
)
p_image
->
p_enc
->
fmt_in
.
video
.
i_height
!=
p_fmt_in
->
i_height
)
{
{
picture_t
*
p_
pif
;
picture_t
*
p_
tmp_pic
;
if
(
p_image
->
p_filter
)
if
(
p_image
->
p_filter
)
if
(
p_image
->
p_filter
->
fmt_in
.
video
.
i_chroma
!=
p_fmt_in
->
i_chroma
||
if
(
p_image
->
p_filter
->
fmt_in
.
video
.
i_chroma
!=
p_fmt_in
->
i_chroma
||
...
@@ -309,12 +309,18 @@ static block_t *ImageWrite( image_handler_t *p_image, picture_t *p_pic,
...
@@ -309,12 +309,18 @@ static block_t *ImageWrite( image_handler_t *p_image, picture_t *p_pic,
pf_release
=
p_pic
->
pf_release
;
pf_release
=
p_pic
->
pf_release
;
p_pic
->
pf_release
=
PicRelease
;
/* Small hack */
p_pic
->
pf_release
=
PicRelease
;
/* Small hack */
p_pif
=
p_image
->
p_filter
->
pf_video_filter
(
p_image
->
p_filter
,
p_pic
);
p_tmp_pic
=
p_image
->
p_filter
->
pf_video_filter
(
p_image
->
p_filter
,
p_pic
);
p_pic
->
pf_release
=
pf_release
;
p_pic
->
pf_release
=
pf_release
;
p_pic
=
p_pif
;
}
p_block
=
p_image
->
p_enc
->
pf_encode_video
(
p_image
->
p_enc
,
p_tmp_pic
);
p_image
->
p_filter
->
pf_vout_buffer_del
(
p_image
->
p_filter
,
p_tmp_pic
);
}
else
{
p_block
=
p_image
->
p_enc
->
pf_encode_video
(
p_image
->
p_enc
,
p_pic
);
p_block
=
p_image
->
p_enc
->
pf_encode_video
(
p_image
->
p_enc
,
p_pic
);
}
if
(
!
p_block
)
if
(
!
p_block
)
{
{
...
...
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