diff options
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux_lavf.c | 4 | ||||
-rw-r--r-- | demux/stheader.h | 2 |
2 files changed, 6 insertions, 0 deletions
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; |