summaryrefslogtreecommitdiff
path: root/libavcodec/codec_id.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-05-25 15:06:14 +0200
committerAnton Khirnov <anton@khirnov.net>2020-05-27 10:22:17 +0200
commitb5aee6086b717b83bce8f6be4324fabaddec6209 (patch)
treeafad6f2dc26a3f6673551a30161c34cd61487dcc /libavcodec/codec_id.h
parentba6cada92eb7c3446bfb1d4525031d405a052516 (diff)
downloadffmpeg-b5aee6086b717b83bce8f6be4324fabaddec6209.tar.gz
avcodec.h: move avcodec_get_{type,name} to codec_id.h
Diffstat (limited to 'libavcodec/codec_id.h')
-rw-r--r--libavcodec/codec_id.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/codec_id.h b/libavcodec/codec_id.h
index e95737c0a2..f7cb0a6056 100644
--- a/libavcodec/codec_id.h
+++ b/libavcodec/codec_id.h
@@ -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);
/**
* @}