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
b5aee608
Commit
b5aee608
authored
May 25, 2020
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec.h: move avcodec_get_{type,name} to codec_id.h
parent
ba6cada9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
avcodec.h
libavcodec/avcodec.h
+0
-11
codec_id.h
libavcodec/codec_id.h
+12
-0
No files found.
libavcodec/avcodec.h
View file @
b5aee608
...
...
@@ -4115,17 +4115,6 @@ attribute_deprecated
int
av_lockmgr_register
(
int
(
*
cb
)(
void
**
mutex
,
enum
AVLockOp
op
));
#endif
/**
* Get the type of the given codec.
*/
enum
AVMediaType
avcodec_get_type
(
enum
AVCodecID
codec_id
);
/**
* Get the name of a codec.
* @return a static string identifying the codec; never NULL
*/
const
char
*
avcodec_get_name
(
enum
AVCodecID
id
);
/**
* @return a positive value if s is open (i.e. avcodec_open2() was called on it
* with no corresponding avcodec_close()), 0 otherwise.
...
...
libavcodec/codec_id.h
View file @
b5aee608
...
...
@@ -21,6 +21,8 @@
#ifndef AVCODEC_CODEC_ID_H
#define AVCODEC_CODEC_ID_H
#include "libavutil/avutil.h"
/**
* @addtogroup lavc_core
* @{
...
...
@@ -556,6 +558,16 @@ enum AVCodecID {
AV_CODEC_ID_WRAPPED_AVFRAME
=
0x21001
,
///< Passthrough codec, AVFrames wrapped in AVPacket
};
/**
* Get the type of the given codec.
*/
enum
AVMediaType
avcodec_get_type
(
enum
AVCodecID
codec_id
);
/**
* Get the name of a codec.
* @return a static string identifying the codec; never NULL
*/
const
char
*
avcodec_get_name
(
enum
AVCodecID
id
);
/**
* @}
...
...
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