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
bce0b5cf
Commit
bce0b5cf
authored
Apr 07, 2014
by
Brian Schmidt
Committed by
Tristan Matthews
Apr 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: Fix memory leak in EncodeVideo
Signed-off-by:
Tristan Matthews
<
le.businessman@gmail.com
>
parent
9e6b2591
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+2
-0
No files found.
modules/codec/avcodec/encoder.c
View file @
bce0b5cf
...
@@ -1090,6 +1090,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
...
@@ -1090,6 +1090,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
{
{
msg_Warn
(
p_enc
,
"almost fed libavcodec with two frames with "
msg_Warn
(
p_enc
,
"almost fed libavcodec with two frames with "
"the same PTS (%"
PRId64
")"
,
frame
->
pts
);
"the same PTS (%"
PRId64
")"
,
frame
->
pts
);
block_Release
(
p_block
);
return
NULL
;
return
NULL
;
}
}
else
if
(
p_sys
->
i_last_pts
>
frame
->
pts
)
else
if
(
p_sys
->
i_last_pts
>
frame
->
pts
)
...
@@ -1097,6 +1098,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
...
@@ -1097,6 +1098,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
msg_Warn
(
p_enc
,
"almost fed libavcodec with a frame in the "
msg_Warn
(
p_enc
,
"almost fed libavcodec with a frame in the "
"past (current: %"
PRId64
", last: %"
PRId64
")"
,
"past (current: %"
PRId64
", last: %"
PRId64
")"
,
frame
->
pts
,
p_sys
->
i_last_pts
);
frame
->
pts
,
p_sys
->
i_last_pts
);
block_Release
(
p_block
);
return
NULL
;
return
NULL
;
}
}
else
else
...
...
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