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.
This commit is contained in:
wm4 2013-07-11 19:22:02 +02:00
parent a6706c41d8
commit 83eb28fff7
1 changed files with 1 additions and 1 deletions

View File

@ -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;