mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:02:09 +00:00
demux_lavf: fix null derefence in io_open callback
The options parameter here can be NULL. It's NULL checked a few lines down,
but not for the propagate_opts loop. This results in null derefence with
--demuxer-lavf-format=image2.
Fixes: b6413f82b2
This commit is contained in:
parent
a41cdf0289
commit
daa3264d3f
@ -945,7 +945,7 @@ static int nested_io_open(struct AVFormatContext *s, AVIOContext **pb,
|
||||
struct demuxer *demuxer = s->opaque;
|
||||
lavf_priv_t *priv = demuxer->priv;
|
||||
|
||||
if (priv->opts->propagate_opts) {
|
||||
if (options && priv->opts->propagate_opts) {
|
||||
// Copy av_opts to options, but only entries that are not present in
|
||||
// options. (Hope this will break less by not overwriting important
|
||||
// settings.)
|
||||
|
Loading…
Reference in New Issue
Block a user