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
1161760f
Commit
1161760f
authored
Jun 28, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: fix frame leaks
parent
c77bd876
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+5
-5
No files found.
modules/codec/avcodec/video.c
View file @
1161760f
...
...
@@ -691,7 +691,7 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
if
(
i_used
<
0
)
{
av_frame_
unref
(
frame
);
av_frame_
free
(
&
frame
);
if
(
b_drawpicture
)
msg_Warn
(
p_dec
,
"cannot decode one frame (%zu bytes)"
,
p_block
->
i_buffer
);
...
...
@@ -711,7 +711,7 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
/* Nothing to display */
if
(
!
b_gotpicture
)
{
av_frame_
unref
(
frame
);
av_frame_
free
(
&
frame
);
if
(
i_used
==
0
)
break
;
continue
;
}
...
...
@@ -767,7 +767,7 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
if
(
!
b_drawpicture
||
(
!
p_sys
->
p_va
&&
!
frame
->
linesize
[
0
]
)
)
{
av_frame_
unref
(
frame
);
av_frame_
free
(
&
frame
);
continue
;
}
...
...
@@ -779,7 +779,7 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
p_pic
=
ffmpeg_NewPictBuf
(
p_dec
,
p_context
);
if
(
!
p_pic
)
{
av_frame_
unref
(
frame
);
av_frame_
free
(
&
frame
);
break
;
}
...
...
@@ -815,7 +815,7 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
p_pic
->
b_progressive
=
!
frame
->
interlaced_frame
;
p_pic
->
b_top_field_first
=
frame
->
top_field_first
;
av_frame_
unref
(
frame
);
av_frame_
free
(
&
frame
);
/* Send decoded frame to vout */
if
(
i_pts
>
VLC_TS_INVALID
)
...
...
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