[FFmpeg-devel] [PATCH 1/2] lavf/file: cosmetic: Remove superfluous ternary operator

Alexander Strasser eclipse7 at gmx.net
Sun Jul 1 02:42:27 CEST 2012


---
 libavformat/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/file.c b/libavformat/file.c
index 35c36a5..b49f84f 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -91,7 +91,7 @@ static int file_open(URLContext *h, const char *filename, int flags)
         return AVERROR(errno);
     h->priv_data = (void *) (intptr_t) fd;
 
-    h->is_streamed = (0==fstat(fd, &st) && S_ISFIFO(st.st_mode)) ? 1 : 0;
+    h->is_streamed = 0==fstat(fd, &st) && S_ISFIFO(st.st_mode);
 
     return 0;
 }
-- 
1.7.10.2.552.gaa3bb87


More information about the ffmpeg-devel mailing list