[PATCH] libavformat: Removed log of unspecified protocol when custom AVIOContext is specified

Voitenko Vladimir via ffmpeg-devel <[email protected]>
Newsgroups gmane.comp.video.ffmpeg.devel
Message-ID <[email protected]>
I compile static version of ffmpeg without any protocols and use custom
AVIOContext that reads from buffer in memory, because no protocols are
bundled in, I always receive annoying messages in terminal that could
not be disabled unless I bundle some protocol that I obviously won`t use

Signed-off-by: Vladimir Voitenko <[email protected]>
---
libavformat/seek.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/seek.c b/libavformat/seek.c
index c0d94371e6..ec0d7898dd 100644
--- a/libavformat/seek.c
+++ b/libavformat/seek.c
@@ -182,7 +182,7 @@ void ff_configure_buffers_for_index(AVFormatContext *s, int64_t time_tolerance)

    av_assert0(time_tolerance >= 0);

-    if (!proto) {
+    if (!proto && s->pb == NULL) {
        av_log(s, AV_LOG_INFO,
               "Protocol name not provided, cannot determine if input is local or "
               "a network protocol, buffers and access patterns cannot be configured "
-- 
2.47.1

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.