History

avformat/avformat: add a function to return the name of stream groups

James Almer committed 2 years ago

Commit ab15c041 parent 79c6ba94 files · +19 −1Browse files

Unified · Split

4 files
  1. doc/APIchanges +3 −0
  2. libavformat/avformat.c +10 −0
  3. libavformat/avformat.h +5 −0
  4. libavformat/version.h +1 −1
doc/APIchanges+3−0
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2023-02-09 · 1 unmodified line
22
33 API changes, most recent first:
44
5+2024-03-05 - xxxxxxxxxx - lavf 60.24.100 - avformat.h
6+ Add avformat_stream_group_name().
7+
58 2024-02-28 - xxxxxxxxxx - swr 4.14.100 - swresample.h
69 swr_convert() now accepts arrays of const pointers (to input and output).
710
libavformat/avformat.c+10−0
@@ -321,6 +321,16 @@ AVStream *ff_stream_clone(AVFormatContext *dst_ctx, const AVStream *src) · 320 unmodified lines
321321 return st;
322322 }
323323
324+const char *avformat_stream_group_name(enum AVStreamGroupParamsType type)
325+{
326+ switch(type) {
327+ case AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT: return "IAMF Audio Element";
328+ case AV_STREAM_GROUP_PARAMS_IAMF_MIX_PRESENTATION: return "IAMF Mix Presentation";
329+ case AV_STREAM_GROUP_PARAMS_TILE_GRID: return "Tile Grid";
330+ }
331+ return NULL;
332+}
333+
324334 AVProgram *av_new_program(AVFormatContext *ac, int id)
325335 {
326336 AVProgram *program = NULL;
libavformat/avformat.h+5−0
@@ -2120,6 +2120,11 @@ const AVClass *av_stream_get_class(void); · 2119 unmodified lines
21202120 */
21212121 const AVClass *av_stream_group_get_class(void);
21222122
2123+/**
2124+ * @return a string identifying the stream group type, or NULL if unknown
2125+ */
2126+const char *avformat_stream_group_name(enum AVStreamGroupParamsType type);
2127+
21232128 /**
21242129 * Add a new empty stream group to a media file.
21252130 *
libavformat/version.h+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131
3232 #include "version_major.h"
3333
34−#define LIBAVFORMAT_VERSION_MINOR 23
34+#define LIBAVFORMAT_VERSION_MINOR 24
3535 #define LIBAVFORMAT_VERSION_MICRO 100
3636
3737 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t