summaryrefslogtreecommitdiffstats
path: root/demux/demux_lavf.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r--demux/demux_lavf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index 659452b5f1..db4c8edac9 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -636,7 +636,9 @@ static void handle_stream(demuxer_t *demuxer, int i)
sh->lav_headers = codec;
if (st->disposition & AV_DISPOSITION_DEFAULT)
- sh->default_track = 1;
+ sh->default_track = true;
+ if (st->disposition & AV_DISPOSITION_FORCED)
+ sh->forced_track = true;
if (priv->format_hack.use_stream_ids)
sh->demuxer_id = st->id;
AVDictionaryEntry *title = av_dict_get(st->metadata, "title", NULL, 0);