ffmpeg | branch: master | Gijs Peskens <[email protected]> | Wed Nov 17 15:19:28 
2021 +0100| [9b15f43cf8c7976fba115da686a990377f7b5ab9] | committer: Marton 
Balint

avformat/librist: correctly initialize logging_settings

Correct solution as suggested by Marton Balint on ffmpeg-devel

Signed-off-by: Marton Balint <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9b15f43cf8c7976fba115da686a990377f7b5ab9
---

 libavformat/librist.c | 1 +
 1 file changed, 1 insertion(+)

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

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to