diff mbox series

[FFmpeg-devel,v3,2/8] avformat/file: reindent after the previous commit

Message ID tencent_F965B4986BC2001D68BE7E02AD1E3B41C10A@qq.com
State Accepted
Commit 8d91a8faab8104872bc83d8e73355d2126a1ce15
Headers show
Series [FFmpeg-devel,v3,1/8] avformat/file: add fd option for pipe | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

zhilizhao(赵志立) Dec. 14, 2022, 5:10 p.m. UTC
From: Zhao Zhili <zhilizhao@tencent.com>

---
 libavformat/file.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
diff mbox series

Patch

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