From: Limin Wang <[email protected]>
Signed-off-by: Limin Wang <[email protected]>
---
libavformat/file.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/file.c b/libavformat/file.c
index 08c7f8e6dd..40ae9ad2a8 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -274,6 +274,7 @@ static int file_open_dir(URLContext *h)
#if HAVE_LSTAT
FileContext *c = h->priv_data;
+ c->fd = -1;
c->dir = opendir(h->filename);
if (!c->dir)
return AVERROR(errno);
--
2.21.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".