mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-17 15:08:09 +08:00
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>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user