summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-11 19:22:02 +0200
committerwm4 <wm4@nowhere>2013-07-11 19:22:02 +0200
commit83eb28fff7d3a588610c617d255ae2420b792c44 (patch)
tree6b79a43f2548450d2b2b23df88d82fe4ca11469b /demux
parenta6706c41d8d89bc1a72dd21e215885e79a766db2 (diff)
downloadmpv-83eb28fff7d3a588610c617d255ae2420b792c44.tar.bz2
mpv-83eb28fff7d3a588610c617d255ae2420b792c44.tar.xz
demux_lavf: use AVDISCARD_DEFAULT instead of AVDISCARD_NONE
AVDISCARD_DEFAULT is probably a bit better for normal decoding. AVDISCARD_NONE would (as by documentation) include "useless" packets too, while DEFAULT filters these.
Diffstat (limited to 'demux')
-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;