aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avformat.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-03-04 16:22:22 -0300
committerJames Almer <jamrial@gmail.com>2024-03-05 11:54:27 -0300
commitab15c04dee5a607e4cedeff852839f96d8bc9129 (patch)
treedf95e4f99a307ea78b7b5a8a3acc4350db7aac3d /libavformat/avformat.c
parent79c6ba900792fcf01a6e29bc7e924da222be2dab (diff)
downloadffmpeg-ab15c04dee5a607e4cedeff852839f96d8bc9129.tar.gz
avformat/avformat: add a function to return the name of stream groups
Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/avformat.c')
-rw-r--r--libavformat/avformat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavformat/avformat.c b/libavformat/avformat.c
index eb898223d2..98dfac2f89 100644
--- a/libavformat/avformat.c
+++ b/libavformat/avformat.c
@@ -321,6 +321,16 @@ AVStream *ff_stream_clone(AVFormatContext *dst_ctx, const AVStream *src)
return st;
}
+const char *avformat_stream_group_name(enum AVStreamGroupParamsType type)
+{
+ switch(type) {
+ case AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT: return "IAMF Audio Element";
+ case AV_STREAM_GROUP_PARAMS_IAMF_MIX_PRESENTATION: return "IAMF Mix Presentation";
+ case AV_STREAM_GROUP_PARAMS_TILE_GRID: return "Tile Grid";
+ }
+ return NULL;
+}
+
AVProgram *av_new_program(AVFormatContext *ac, int id)
{
AVProgram *program = NULL;