1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00

demux: fix memleak in allocation with params=NULL

The default behavior for `does not own stream` should be false, but this
condition is inverted so we need to default the base case to `true`.
This commit is contained in:
Niklas Haas 2018-11-11 10:42:41 +01:00 committed by Anton Kindestam
parent 32385a784c
commit 3dc2d7d7dd

View File

@ -2498,7 +2498,7 @@ struct demuxer *demux_open(struct stream *stream, struct demuxer_params *params,
talloc_steal(demuxer, log);
log = NULL;
demuxer->in->owns_stream =
params ? !params->does_not_own_stream : false;
params ? !params->does_not_own_stream : true;
goto done;
}
}