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:
parent
32385a784c
commit
3dc2d7d7dd
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user