[FFmpeg-cvslog] avformat/unix: set is_streamed to true

dank074 git at videolan.org
Fri Feb 7 17:14:20 EET 2025


ffmpeg | branch: master | dank074 <torresefrain10 at gmail.com> | Thu Feb  6 01:00:47 2025 -0600| [e945142df34f88e11546d1943cff420fbd592698] | committer: Leo Izen

avformat/unix: set is_streamed to true

Currently when a Unix Domain Socket is used as input there is a loss
of data when data is consumed from the stream. Setting is_streamed to
true fixes this, since the unix domain socket is now treated like a
consumable stream.

Fixes: #9346
Signed-off-by: dank074 <torresefrain10 at gmail.com>
Reviewed-by: Leo Izen <leo.izen at gmail.com>

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

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

diff --git a/libavformat/unix.c b/libavformat/unix.c
index 5704155cf0..fed215a691 100644
--- a/libavformat/unix.c
+++ b/libavformat/unix.c
@@ -89,6 +89,7 @@ static int unix_open(URLContext *h, const char *filename, int flags)
     }
 
     s->fd = fd;
+    h->is_streamed = 1;
 
     return 0;
 



More information about the ffmpeg-cvslog mailing list