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]

Reply via email to