summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-11-11 14:35:13 +0100
committerAnton Khirnov <anton@khirnov.net>2021-11-16 10:51:32 +0100
commitb731fb5104d06ddbfa6e61ea9451ba77c1c22bce (patch)
tree93e058e3fdb562abe521b34f863cf2e7ed90ea67 /libavformat/avformat.h
parented75a08d36c011db152d89e2c23b2dab55331d93 (diff)
downloadffmpeg-b731fb5104d06ddbfa6e61ea9451ba77c1c22bce.tar.gz
lavf: add public functions converting dispositions to/from strings
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index da92a3847a..0343825aa0 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -895,6 +895,20 @@ typedef struct AVIndexEntry {
#define AV_DISPOSITION_STILL_IMAGE (1 << 20)
/**
+ * @return The AV_DISPOSITION_* flag corresponding to disp or a negative error
+ * code if disp does not correspond to a known stream disposition.
+ */
+int av_disposition_from_string(const char *disp);
+
+/**
+ * @param disposition a combination of AV_DISPOSITION_* values
+ * @return The string description corresponding to the lowest set bit in
+ * disposition. NULL when the lowest set bit does not correspond
+ * to a known disposition or when disposition is 0.
+ */
+const char *av_disposition_to_string(int disposition);
+
+/**
* Options for behavior on timestamp wrap detection.
*/
#define AV_PTS_WRAP_IGNORE 0 ///< ignore the wrap