[FFmpeg-cvslog] lavf/file: cosmetic: Use "not" instead of "equals zero"

Alexander Strasser git at videolan.org
Thu Jul 5 11:17:50 CEST 2012


ffmpeg | branch: master | Alexander Strasser <eclipse7 at gmx.net> | Sun Jul  1 00:47:49 2012 +0200| [1fe6cb448a85d7768851f818850456c39eaa7926] | committer: Alexander Strasser

lavf/file: cosmetic: Use "not" instead of "equals zero"

  This is more similar to the "overall" FFmpeg coding style.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1fe6cb448a85d7768851f818850456c39eaa7926
---

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

diff --git a/libavformat/file.c b/libavformat/file.c
index b49f84f..c54ec28 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);
+    h->is_streamed = !fstat(fd, &st) && S_ISFIFO(st.st_mode);
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list