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
b9fb59d2
Commit
b9fb59d2
authored
Nov 09, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: deprecate avcodec_alloc_frame().
parent
5b9c3b45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
avcodec.h
libavcodec/avcodec.h
+4
-5
utils.c
libavcodec/utils.c
+2
-0
No files found.
libavcodec/avcodec.h
View file @
b9fb59d2
...
@@ -3096,14 +3096,13 @@ const AVClass *avcodec_get_class(void);
...
@@ -3096,14 +3096,13 @@ const AVClass *avcodec_get_class(void);
*/
*/
int
avcodec_copy_context
(
AVCodecContext
*
dest
,
const
AVCodecContext
*
src
);
int
avcodec_copy_context
(
AVCodecContext
*
dest
,
const
AVCodecContext
*
src
);
#if FF_API_AVFRAME_LAVC
/**
/**
* Allocate an AVFrame and set its fields to default values. The resulting
* @deprecated use av_frame_alloc()
* struct must be freed using avcodec_free_frame().
*
* @return An AVFrame filled with default values or NULL on failure.
* @see avcodec_get_frame_defaults
*/
*/
attribute_deprecated
AVFrame
*
avcodec_alloc_frame
(
void
);
AVFrame
*
avcodec_alloc_frame
(
void
);
#endif
/**
/**
* Set the fields of the given AVFrame to default values.
* Set the fields of the given AVFrame to default values.
...
...
libavcodec/utils.c
View file @
b9fb59d2
...
@@ -815,6 +815,7 @@ void avcodec_get_frame_defaults(AVFrame *frame)
...
@@ -815,6 +815,7 @@ void avcodec_get_frame_defaults(AVFrame *frame)
frame
->
extended_data
=
frame
->
data
;
frame
->
extended_data
=
frame
->
data
;
}
}
#if FF_API_AVFRAME_LAVC
AVFrame
*
avcodec_alloc_frame
(
void
)
AVFrame
*
avcodec_alloc_frame
(
void
)
{
{
AVFrame
*
frame
=
av_mallocz
(
sizeof
(
AVFrame
));
AVFrame
*
frame
=
av_mallocz
(
sizeof
(
AVFrame
));
...
@@ -826,6 +827,7 @@ AVFrame *avcodec_alloc_frame(void)
...
@@ -826,6 +827,7 @@ AVFrame *avcodec_alloc_frame(void)
return
frame
;
return
frame
;
}
}
#endif
void
avcodec_free_frame
(
AVFrame
**
frame
)
void
avcodec_free_frame
(
AVFrame
**
frame
)
{
{
...
...
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