summaryrefslogtreecommitdiff
path: root/libavformat/file.c
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2022-12-15 01:10:08 +0800
committerZhao Zhili <zhilizhao@tencent.com>2023-01-11 18:50:36 +0800
commit8d91a8faab8104872bc83d8e73355d2126a1ce15 (patch)
tree222001ebbba0d3f5c3ae66a80b9ffdafc7f814a0 /libavformat/file.c
parent49b8f043ca3e39141929d8614876131be0a801a9 (diff)
downloadffmpeg-8d91a8faab8104872bc83d8e73355d2126a1ce15.tar.gz
avformat/file: reindent after the previous commit
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavformat/file.c')
-rw-r--r--libavformat/file.c20
1 files 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