From: Zhao Zhili <[email protected]>
---
libavformat/file.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/libavformat/file.c b/libavformat/file.c
index db619fcaac..a56be64342 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -384,17 +384,17 @@ static int pipe_open(URLContext *h, const char *filename,
int flags)
char *final;
if (c->fd < 0) {
- av_strstart(filename, "pipe:", &filename);
-
- fd = strtol(filename, &final, 10);
- if((filename == final) || *final ) {/* No digits found, or something like
10ab */
- if (flags & AVIO_FLAG_WRITE) {
- fd = 1;
- } else {
- fd = 0;
+ av_strstart(filename, "pipe:", &filename);
+
+ fd = strtol(filename, &final, 10);
+ if((filename == final) || *final ) {/* No digits found, or something
like 10ab */
+ if (flags & AVIO_FLAG_WRITE) {
+ fd = 1;
+ } else {
+ fd = 0;
+ }
}
- }
- c->fd = fd;
+ c->fd = fd;
}
#if HAVE_SETMODE
--
2.25.1
_______________________________________________
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".