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
da801918
Commit
da801918
authored
Oct 24, 2012
by
Ilkka Ollakka
Committed by
Rémi Denis-Courmont
Oct 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: use av_freep instead of avcodec_free_frame
avcodec_free_frame isn't in untill 54.28.0 and were in 52.25.0
parent
a8d2d402
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+3
-3
No files found.
modules/codec/avcodec/encoder.c
View file @
da801918
...
...
@@ -917,7 +917,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
{
msg_Warn
(
p_enc
,
"almost fed libavcodec with two frames with the "
"same PTS (%"
PRId64
")"
,
frame
->
pts
);
av
codec_free_frame
(
&
frame
);
av
_freep
(
&
frame
);
return
NULL
;
}
else
if
(
p_sys
->
i_last_pts
>
frame
->
pts
)
...
...
@@ -925,7 +925,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 "
"past (current: %"
PRId64
", last: %"
PRId64
")"
,
frame
->
pts
,
p_sys
->
i_last_pts
);
av
codec_free_frame
(
&
frame
);
av
_freep
(
&
frame
);
return
NULL
;
}
else
...
...
@@ -938,7 +938,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
i_out
=
avcodec_encode_video
(
p_sys
->
p_context
,
p_block
->
p_buffer
,
p_block
->
i_buffer
,
frame
);
av
codec_free_frame
(
&
frame
);
av
_freep
(
&
frame
);
}
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