Fix error that caused seek format operations to set max file size to '1' or '0'
[asterisk/asterisk.git] / formats / format_g719.c
index 903fbcd..0a0eea1 100644 (file)
@@ -92,7 +92,7 @@ static int g719seek(struct ast_filestream *fs, off_t sample_offset, int whence)
                return -1;
        }
 
-       if ((max = ftello(fs->f) < 0)) {
+       if ((max = ftello(fs->f)) < 0) {
                ast_log(AST_LOG_WARNING, "Unable to determine max position in g719 filestream %p: %s\n", fs, strerror(errno));
                return -1;
        }