From d5cad856255cb0e74461f9d6613f561c6f347a0f Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Thu, 26 Jul 2018 12:53:14 -0700 Subject: player: expose hearing/visual impaired flags on audio tracks Signed-off-by: Aman Gupta --- demux/demux_lavf.c | 4 ++++ demux/stheader.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'demux') diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 83cce14bc2..01f99ae6fa 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -715,6 +715,10 @@ static void handle_new_stream(demuxer_t *demuxer, int i) sh->forced_track = true; if (st->disposition & AV_DISPOSITION_DEPENDENT) sh->dependent_track = true; + if (st->disposition & AV_DISPOSITION_VISUAL_IMPAIRED) + sh->visual_impaired_track = true; + if (st->disposition & AV_DISPOSITION_HEARING_IMPAIRED) + sh->hearing_impaired_track = true; if (st->disposition & AV_DISPOSITION_STILL_IMAGE) sh->still_image = true; if (priv->format_hack.use_stream_ids) diff --git a/demux/stheader.h b/demux/stheader.h index 63744487bf..beca0fabf7 100644 --- a/demux/stheader.h +++ b/demux/stheader.h @@ -46,6 +46,8 @@ struct sh_stream { bool default_track; // container default track flag bool forced_track; // container forced track flag bool dependent_track; // container dependent track flag + bool visual_impaired_track; // container flag + bool hearing_impaired_track;// container flag bool still_image; // video stream contains still images int hls_bitrate; -- cgit v1.2.3