Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d3397c3e
Commit
d3397c3e
authored
Nov 03, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: remove dead FF_API_ALLOC_CONTEXT API
parent
3d9fc5c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
65 deletions
+0
-65
avcodec.h
libavcodec/avcodec.h
+0
-34
options.c
libavcodec/options.c
+0
-28
version.h
libavcodec/version.h
+0
-3
No files found.
libavcodec/avcodec.h
View file @
d3397c3e
...
...
@@ -3265,40 +3265,6 @@ void avcodec_register(AVCodec *codec);
*/
void
avcodec_register_all
(
void
);
#if FF_API_ALLOC_CONTEXT
/**
* Allocate an AVCodecContext and set its fields to default values. The
* resulting struct can be deallocated by simply calling av_free().
*
* @return An AVCodecContext filled with default values or NULL on failure.
* @see avcodec_get_context_defaults
*
* @deprecated use avcodec_alloc_context3()
*/
attribute_deprecated
AVCodecContext
*
avcodec_alloc_context
(
void
);
/** THIS FUNCTION IS NOT YET PART OF THE PUBLIC API!
* we WILL change its arguments and name a few times! */
attribute_deprecated
AVCodecContext
*
avcodec_alloc_context2
(
enum
AVMediaType
);
/**
* Set the fields of the given AVCodecContext to default values.
*
* @param s The AVCodecContext of which the fields should be set to default values.
* @deprecated use avcodec_get_context_defaults3
*/
attribute_deprecated
void
avcodec_get_context_defaults
(
AVCodecContext
*
s
);
/** THIS FUNCTION IS NOT YET PART OF THE PUBLIC API!
* we WILL change its arguments and name a few times! */
attribute_deprecated
void
avcodec_get_context_defaults2
(
AVCodecContext
*
s
,
enum
AVMediaType
);
#endif
/**
* Allocate an AVCodecContext and set its fields to default values. The
* resulting struct can be deallocated by calling avcodec_close() on it followed
...
...
libavcodec/options.c
View file @
d3397c3e
...
...
@@ -86,14 +86,6 @@ static const AVClass av_codec_context_class = {
.
get_category
=
get_category
,
};
#if FF_API_ALLOC_CONTEXT
void
avcodec_get_context_defaults2
(
AVCodecContext
*
s
,
enum
AVMediaType
codec_type
){
AVCodec
c
=
{
0
};
c
.
type
=
codec_type
;
avcodec_get_context_defaults3
(
s
,
&
c
);
}
#endif
int
avcodec_get_context_defaults3
(
AVCodecContext
*
s
,
const
AVCodec
*
codec
)
{
int
flags
=
0
;
...
...
@@ -162,26 +154,6 @@ AVCodecContext *avcodec_alloc_context3(const AVCodec *codec)
return
avctx
;
}
#if FF_API_ALLOC_CONTEXT
AVCodecContext
*
avcodec_alloc_context2
(
enum
AVMediaType
codec_type
){
AVCodecContext
*
avctx
=
av_malloc
(
sizeof
(
AVCodecContext
));
if
(
avctx
==
NULL
)
return
NULL
;
avcodec_get_context_defaults2
(
avctx
,
codec_type
);
return
avctx
;
}
void
avcodec_get_context_defaults
(
AVCodecContext
*
s
){
avcodec_get_context_defaults2
(
s
,
AVMEDIA_TYPE_UNKNOWN
);
}
AVCodecContext
*
avcodec_alloc_context
(
void
){
return
avcodec_alloc_context2
(
AVMEDIA_TYPE_UNKNOWN
);
}
#endif
int
avcodec_copy_context
(
AVCodecContext
*
dest
,
const
AVCodecContext
*
src
)
{
if
(
avcodec_is_open
(
dest
))
{
// check that the dest context is uninitialized
...
...
libavcodec/version.h
View file @
d3397c3e
...
...
@@ -51,9 +51,6 @@
#ifndef FF_API_REQUEST_CHANNELS
#define FF_API_REQUEST_CHANNELS (LIBAVCODEC_VERSION_MAJOR < 56)
#endif
#ifndef FF_API_ALLOC_CONTEXT
#define FF_API_ALLOC_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 55)
#endif
#ifndef FF_API_AVCODEC_OPEN
#define FF_API_AVCODEC_OPEN (LIBAVCODEC_VERSION_MAJOR < 55)
#endif
...
...
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