[PATCH 1/9] Doxygen av_codec_get_id() and av_codec_get_tag().
Stefano Sabatini
stefano.sabatini-lala
Wed Mar 24 01:32:41 CET 2010
---
libavformat/avformat.h | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 9928e84..a0acf0e 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -868,8 +868,20 @@ void av_pkt_dump_log(void *avcl, int level, AVPacket *pkt, int dump_payload);
*/
void av_register_all(void);
-/** codec tag <-> codec id */
+/**
+ * Gets the CodecID for the given codec tag tag.
+ * If no codec id is found returns CODEC_ID_NONE.
+ *
+ * @param tags a NULL-terminated list of lists of tags
+ */
enum CodecID av_codec_get_id(const struct AVCodecTag * const *tags, unsigned int tag);
+
+/**
+ * Gets the codec tag for the given codec id id.
+ * If no codec tag is found returns 0.
+ *
+ * @param tags a NULL-terminated list of lists of tags
+ */
unsigned int av_codec_get_tag(const struct AVCodecTag * const *tags, enum CodecID id);
/* media file input */
--
1.7.0
--82I3+IH0IqGh5yIs--
More information about the ffmpeg-devel
mailing list