diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-05-04 16:33:24 -0400 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:46 -0300 |
commit | b2d6e7a2892445ceb14947ae7c959d55e34aba1f (patch) | |
tree | ed217d7ce789fc7afdfc303f2e465d81a6b97c48 | |
parent | 5636972c7acb5a485e1759db478ded70ee9d3832 (diff) | |
download | ffmpeg-b2d6e7a2892445ceb14947ae7c959d55e34aba1f.tar.gz |
lavf: Add non diegetic stream disposition flag
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/avformat.h | 7 | ||||
-rw-r--r-- | libavformat/dump.c | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index b4b8075ae6..0446e1fdfa 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -880,6 +880,13 @@ typedef struct AVIndexEntry { #define AV_DISPOSITION_TIMED_THUMBNAILS (1 << 11) /** + * The stream is intended to be mixed with a spatial audio track. For example, + * it could be used for narration or stereo music, and may remain unchanged by + * listener head rotation. + */ +#define AV_DISPOSITION_NON_DIEGETIC (1 << 12) + +/** * The subtitle stream contains captions, providing a transcription and possibly * a translation of audio. Typically intended for hearing-impaired audiences. */ diff --git a/libavformat/dump.c b/libavformat/dump.c index 69b838fbc7..e3f0056c20 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -618,6 +618,8 @@ static void dump_stream_format(const AVFormatContext *ic, int i, av_log(NULL, AV_LOG_INFO, " (dependent)"); if (st->disposition & AV_DISPOSITION_STILL_IMAGE) av_log(NULL, AV_LOG_INFO, " (still image)"); + if (st->disposition & AV_DISPOSITION_NON_DIEGETIC) + av_log(NULL, AV_LOG_INFO, " (non-diegetic)"); av_log(NULL, AV_LOG_INFO, "\n"); dump_metadata(NULL, st->metadata, " "); |