summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demux/demux_lavf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index 7f4e3a1b3d..ce7c274e4b 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -801,7 +801,7 @@ static int demux_lavf_control(demuxer_t *demuxer, int cmd, void *arg)
AVStream *st = priv->avfc->streams[n];
if (stream && stream->type != STREAM_SUB) {
bool selected = demuxer_stream_is_selected(demuxer, stream);
- st->discard = selected ? AVDISCARD_NONE : AVDISCARD_ALL;
+ st->discard = selected ? AVDISCARD_DEFAULT : AVDISCARD_ALL;
}
}
return DEMUXER_CTRL_OK;