diff options
author | Gijs Peskens <gijs@peskens.net> | 2021-11-17 15:19:28 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2021-11-18 20:40:24 +0100 |
commit | 9b15f43cf8c7976fba115da686a990377f7b5ab9 (patch) | |
tree | 018d9f8d10281a04cf894537d48a17ec6cf98d4b | |
parent | daef8cbff70389e0a5c8b5bd7f05536a4adc2933 (diff) | |
download | ffmpeg-9b15f43cf8c7976fba115da686a990377f7b5ab9.tar.gz |
avformat/librist: correctly initialize logging_settings
Correct solution as suggested by Marton Balint on ffmpeg-devel
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavformat/librist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/librist.c b/libavformat/librist.c index 6eae90cc2f..378b635ea7 100644 --- a/libavformat/librist.c +++ b/libavformat/librist.c @@ -130,6 +130,7 @@ static int librist_open(URLContext *h, const char *uri, int flags) if ((flags & AVIO_FLAG_READ_WRITE) == AVIO_FLAG_READ_WRITE) return AVERROR(EINVAL); + s->logging_settings = (struct rist_logging_settings)LOGGING_SETTINGS_INITIALIZER; ret = rist_logging_set(&logging_settings, s->log_level, log_cb, h, NULL, NULL); if (ret < 0) return risterr2ret(ret); |