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
2 2
3API changes, most recent first:3API changes, most recent first:
4 4
52024-03-05 - xxxxxxxxxx - lavf 60.24.100 - avformat.h
6 Add avformat_stream_group_name().
7
52024-02-28 - xxxxxxxxxx - swr 4.14.100 - swresample.h82024-02-28 - xxxxxxxxxx - swr 4.14.100 - swresample.h
6 swr_convert() now accepts arrays of const pointers (to input and output).9 swr_convert() now accepts arrays of const pointers (to input and output).
7 10
libavformat/avformat.c+10−0
@@ -321,6 +321,16 @@ AVStream *ff_stream_clone(AVFormatContext *dst_ctx, const AVStream *src) · 320 unmodified lines
321 return st;321 return st;
322}322}
323 323
324const 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
324AVProgram *av_new_program(AVFormatContext *ac, int id)334AVProgram *av_new_program(AVFormatContext *ac, int id)
325{335{
326 AVProgram *program = NULL;336 AVProgram *program = NULL;
libavformat/avformat.h+5−0
@@ -2120,6 +2120,11 @@ const AVClass *av_stream_get_class(void); · 2119 unmodified lines
2120 */2120 */
2121const AVClass *av_stream_group_get_class(void);2121const AVClass *av_stream_group_get_class(void);
2122 2122
2123/**
2124 * @return a string identifying the stream group type, or NULL if unknown
2125 */
2126const char *avformat_stream_group_name(enum AVStreamGroupParamsType type);
2127
2123/**2128/**
2124 * Add a new empty stream group to a media file.2129 * Add a new empty stream group to a media file.
2125 *2130 *
libavformat/version.h+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
31 31
32#include "version_major.h"32#include "version_major.h"
33 33
34#define LIBAVFORMAT_VERSION_MINOR 2334#define LIBAVFORMAT_VERSION_MINOR 24
35#define LIBAVFORMAT_VERSION_MICRO 10035#define LIBAVFORMAT_VERSION_MICRO 100
36 36
37#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \37#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