Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
94313562
Commit
94313562
authored
Nov 29, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: deprecate avcodec_free_frame()
av_frame_free() should be used instead.
parent
eb891b31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
avcodec.h
libavcodec/avcodec.h
+5
-0
utils.c
libavcodec/utils.c
+2
-12
No files found.
libavcodec/avcodec.h
View file @
94313562
...
...
@@ -3112,6 +3112,7 @@ AVFrame *avcodec_alloc_frame(void);
*/
void
avcodec_get_frame_defaults
(
AVFrame
*
frame
);
#if FF_API_AVFRAME_LAVC
/**
* Free the frame and any dynamically allocated objects in it,
* e.g. extended_data.
...
...
@@ -3121,8 +3122,12 @@ void avcodec_get_frame_defaults(AVFrame *frame);
* @warning this function does NOT free the data buffers themselves
* (it does not know how, since they might have been allocated with
* a custom get_buffer()).
*
* @deprecated use av_frame_free()
*/
attribute_deprecated
void
avcodec_free_frame
(
AVFrame
**
frame
);
#endif
/**
* Initialize the AVCodecContext to use the given AVCodec. Prior to using this
...
...
libavcodec/utils.c
View file @
94313562
...
...
@@ -827,22 +827,12 @@ AVFrame *avcodec_alloc_frame(void)
return
frame
;
}
#endif
void
avcodec_free_frame
(
AVFrame
**
frame
)
{
AVFrame
*
f
;
if
(
!
frame
||
!*
frame
)
return
;
f
=
*
frame
;
if
(
f
->
extended_data
!=
f
->
data
)
av_freep
(
&
f
->
extended_data
);
av_freep
(
frame
);
av_frame_free
(
frame
);
}
#endif
int
attribute_align_arg
avcodec_open2
(
AVCodecContext
*
avctx
,
const
AVCodec
*
codec
,
AVDictionary
**
options
)
{
...
...
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